TS bindings
[ldk-java] / ts / structs / HTLCOutputInCommitment.ts
diff --git a/ts/structs/HTLCOutputInCommitment.ts b/ts/structs/HTLCOutputInCommitment.ts
new file mode 100644 (file)
index 0000000..cee9cf8
--- /dev/null
@@ -0,0 +1,66 @@
+
+import CommonBase from './CommonBase';
+import * as bindings from '../bindings' // TODO: figure out location
+
+public class HTLCOutputInCommitment extends CommonBase {
+       HTLCOutputInCommitment(Object _dummy, long ptr) { super(ptr); }
+       @Override @SuppressWarnings("deprecation")
+       protected void finalize() throws Throwable {
+               super.finalize();
+               if (ptr != 0) { bindings.HTLCOutputInCommitment_free(ptr); }
+       }
+
+       public HTLCOutputInCommitment clone() {
+               uint32_t ret = bindings.HTLCOutputInCommitment_clone(this.ptr);
+               HTLCOutputInCommitment ret_hu_conv = new HTLCOutputInCommitment(null, ret);
+               return ret_hu_conv;
+       }
+
+       public boolean get_offered() {
+               boolean ret = bindings.HTLCOutputInCommitment_get_offered(this.ptr);
+               return ret;
+       }
+
+       public void set_offered(boolean val) {
+               bindings.HTLCOutputInCommitment_set_offered(this.ptr, val);
+       }
+
+       public long get_amount_msat() {
+               long ret = bindings.HTLCOutputInCommitment_get_amount_msat(this.ptr);
+               return ret;
+       }
+
+       public void set_amount_msat(long val) {
+               bindings.HTLCOutputInCommitment_set_amount_msat(this.ptr, val);
+       }
+
+       public int get_cltv_expiry() {
+               int ret = bindings.HTLCOutputInCommitment_get_cltv_expiry(this.ptr);
+               return ret;
+       }
+
+       public void set_cltv_expiry(int val) {
+               bindings.HTLCOutputInCommitment_set_cltv_expiry(this.ptr, val);
+       }
+
+       public byte[] get_payment_hash() {
+               byte[] ret = bindings.HTLCOutputInCommitment_get_payment_hash(this.ptr);
+               return ret;
+       }
+
+       public void set_payment_hash(byte[] val) {
+               bindings.HTLCOutputInCommitment_set_payment_hash(this.ptr, val);
+       }
+
+       public byte[] write() {
+               byte[] ret = bindings.HTLCOutputInCommitment_write(this.ptr);
+               return ret;
+       }
+
+       public static HTLCOutputInCommitment constructor_read(byte[] ser) {
+               uint32_t ret = bindings.HTLCOutputInCommitment_read(ser);
+               HTLCOutputInCommitment ret_hu_conv = new HTLCOutputInCommitment(null, ret);
+               return ret_hu_conv;
+       }
+
+}