Bindings updates
[ldk-java] / ts / structs / PaymentSendFailure.ts
index ddaccb9d8279183a67aef38eb2566b00f1ff07fd..32bef844f5468cd54fae47e522e27a73771382e7 100644 (file)
@@ -1,13 +1,28 @@
 
+            
 import CommonBase from './CommonBase';
 import * as bindings from '../bindings' // TODO: figure out location
 
-public class PaymentSendFailure extends CommonBase {
-       PaymentSendFailure(Object _dummy, long ptr) { super(ptr); }
-       @Override @SuppressWarnings("deprecation")
-       protected void finalize() throws Throwable {
-               super.finalize();
-               if (ptr != 0) { bindings.PaymentSendFailure_free(ptr); }
+
+
+            export default class PaymentSendFailure extends CommonBase {
+                constructor(_dummy: object, ptr: number) {
+                    super(ptr);
+                }
+
+                
+                protected finalize() {
+                    super.finalize();
+
+                    if (this.ptr != 0) {
+                        bindings.PaymentSendFailure_free(this.ptr);
+                    }
+                }
+       public PaymentSendFailure clone() {
+               number ret = bindings.PaymentSendFailure_clone(this.ptr);
+               const ret_hu_conv: PaymentSendFailure = new PaymentSendFailure(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
        }
 
 }