Bindings updates
[ldk-java] / ts / structs / PaymentSendFailure.ts
index ddaccb9d8279183a67aef38eb2566b00f1ff07fd..04ea895d02b01c8b0c10a010dc34a16cae1604a5 100644 (file)
@@ -1,13 +1,21 @@
 
+            
 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);
+                    }
+                }
 }