TS bindings
[ldk-java] / ts / structs / Init.ts
diff --git a/ts/structs/Init.ts b/ts/structs/Init.ts
new file mode 100644 (file)
index 0000000..b1cca23
--- /dev/null
@@ -0,0 +1,30 @@
+
+import CommonBase from './CommonBase';
+import * as bindings from '../bindings' // TODO: figure out location
+
+public class Init extends CommonBase {
+       Init(Object _dummy, long ptr) { super(ptr); }
+       @Override @SuppressWarnings("deprecation")
+       protected void finalize() throws Throwable {
+               super.finalize();
+               if (ptr != 0) { bindings.Init_free(ptr); }
+       }
+
+       public Init clone() {
+               uint32_t ret = bindings.Init_clone(this.ptr);
+               Init ret_hu_conv = new Init(null, ret);
+               return ret_hu_conv;
+       }
+
+       public byte[] write() {
+               byte[] ret = bindings.Init_write(this.ptr);
+               return ret;
+       }
+
+       public static Result_InitDecodeErrorZ constructor_read(byte[] ser) {
+               uint32_t ret = bindings.Init_read(ser);
+               Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
+               return ret_hu_conv;
+       }
+
+}