2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class HTLCOutputInCommitment extends CommonBase {
6 HTLCOutputInCommitment(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.HTLCOutputInCommitment_free(ptr); }
13 public HTLCOutputInCommitment clone() {
14 uint32_t ret = bindings.HTLCOutputInCommitment_clone(this.ptr);
15 HTLCOutputInCommitment ret_hu_conv = new HTLCOutputInCommitment(null, ret);
19 public boolean get_offered() {
20 boolean ret = bindings.HTLCOutputInCommitment_get_offered(this.ptr);
24 public void set_offered(boolean val) {
25 bindings.HTLCOutputInCommitment_set_offered(this.ptr, val);
28 public long get_amount_msat() {
29 long ret = bindings.HTLCOutputInCommitment_get_amount_msat(this.ptr);
33 public void set_amount_msat(long val) {
34 bindings.HTLCOutputInCommitment_set_amount_msat(this.ptr, val);
37 public int get_cltv_expiry() {
38 int ret = bindings.HTLCOutputInCommitment_get_cltv_expiry(this.ptr);
42 public void set_cltv_expiry(int val) {
43 bindings.HTLCOutputInCommitment_set_cltv_expiry(this.ptr, val);
46 public byte[] get_payment_hash() {
47 byte[] ret = bindings.HTLCOutputInCommitment_get_payment_hash(this.ptr);
51 public void set_payment_hash(byte[] val) {
52 bindings.HTLCOutputInCommitment_set_payment_hash(this.ptr, val);
55 public byte[] write() {
56 byte[] ret = bindings.HTLCOutputInCommitment_write(this.ptr);
60 public static HTLCOutputInCommitment constructor_read(byte[] ser) {
61 uint32_t ret = bindings.HTLCOutputInCommitment_read(ser);
62 HTLCOutputInCommitment ret_hu_conv = new HTLCOutputInCommitment(null, ret);