TS bindings
[ldk-java] / ts / structs / PeerHandleError.ts
diff --git a/ts/structs/PeerHandleError.ts b/ts/structs/PeerHandleError.ts
new file mode 100644 (file)
index 0000000..3b3a33c
--- /dev/null
@@ -0,0 +1,28 @@
+
+import CommonBase from './CommonBase';
+import * as bindings from '../bindings' // TODO: figure out location
+
+public class PeerHandleError extends CommonBase {
+       PeerHandleError(Object _dummy, long ptr) { super(ptr); }
+       @Override @SuppressWarnings("deprecation")
+       protected void finalize() throws Throwable {
+               super.finalize();
+               if (ptr != 0) { bindings.PeerHandleError_free(ptr); }
+       }
+
+       public boolean get_no_connection_possible() {
+               boolean ret = bindings.PeerHandleError_get_no_connection_possible(this.ptr);
+               return ret;
+       }
+
+       public void set_no_connection_possible(boolean val) {
+               bindings.PeerHandleError_set_no_connection_possible(this.ptr, val);
+       }
+
+       public static PeerHandleError constructor_new(boolean no_connection_possible_arg) {
+               uint32_t ret = bindings.PeerHandleError_new(no_connection_possible_arg);
+               PeerHandleError ret_hu_conv = new PeerHandleError(null, ret);
+               return ret_hu_conv;
+       }
+
+}