1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class UnsignedChannelUpdate extends CommonBase {
7 UnsignedChannelUpdate(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
10 bindings.UnsignedChannelUpdate_free(ptr); super.finalize();
13 public UnsignedChannelUpdate(UnsignedChannelUpdate orig) {
14 super(bindings.UnsignedChannelUpdate_clone(orig.ptr & ~1));
15 this.ptrs_to.add(orig);
18 public byte[] get_chain_hash(UnsignedChannelUpdate this_ptr) {
19 byte[] ret = bindings.UnsignedChannelUpdate_get_chain_hash(this_ptr.ptr & ~1);
20 this.ptrs_to.add(this_ptr);
24 public void set_chain_hash(UnsignedChannelUpdate this_ptr, byte[] val) {
25 bindings.UnsignedChannelUpdate_set_chain_hash(this_ptr.ptr & ~1, val);
26 this.ptrs_to.add(this_ptr);
29 public long get_short_channel_id(UnsignedChannelUpdate this_ptr) {
30 long ret = bindings.UnsignedChannelUpdate_get_short_channel_id(this_ptr.ptr & ~1);
31 this.ptrs_to.add(this_ptr);
35 public void set_short_channel_id(UnsignedChannelUpdate this_ptr, long val) {
36 bindings.UnsignedChannelUpdate_set_short_channel_id(this_ptr.ptr & ~1, val);
37 this.ptrs_to.add(this_ptr);
40 public int get_timestamp(UnsignedChannelUpdate this_ptr) {
41 int ret = bindings.UnsignedChannelUpdate_get_timestamp(this_ptr.ptr & ~1);
42 this.ptrs_to.add(this_ptr);
46 public void set_timestamp(UnsignedChannelUpdate this_ptr, int val) {
47 bindings.UnsignedChannelUpdate_set_timestamp(this_ptr.ptr & ~1, val);
48 this.ptrs_to.add(this_ptr);
51 public byte get_flags(UnsignedChannelUpdate this_ptr) {
52 byte ret = bindings.UnsignedChannelUpdate_get_flags(this_ptr.ptr & ~1);
53 this.ptrs_to.add(this_ptr);
57 public void set_flags(UnsignedChannelUpdate this_ptr, byte val) {
58 bindings.UnsignedChannelUpdate_set_flags(this_ptr.ptr & ~1, val);
59 this.ptrs_to.add(this_ptr);
62 public short get_cltv_expiry_delta(UnsignedChannelUpdate this_ptr) {
63 short ret = bindings.UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr.ptr & ~1);
64 this.ptrs_to.add(this_ptr);
68 public void set_cltv_expiry_delta(UnsignedChannelUpdate this_ptr, short val) {
69 bindings.UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr.ptr & ~1, val);
70 this.ptrs_to.add(this_ptr);
73 public long get_htlc_minimum_msat(UnsignedChannelUpdate this_ptr) {
74 long ret = bindings.UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr.ptr & ~1);
75 this.ptrs_to.add(this_ptr);
79 public void set_htlc_minimum_msat(UnsignedChannelUpdate this_ptr, long val) {
80 bindings.UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr.ptr & ~1, val);
81 this.ptrs_to.add(this_ptr);
84 public int get_fee_base_msat(UnsignedChannelUpdate this_ptr) {
85 int ret = bindings.UnsignedChannelUpdate_get_fee_base_msat(this_ptr.ptr & ~1);
86 this.ptrs_to.add(this_ptr);
90 public void set_fee_base_msat(UnsignedChannelUpdate this_ptr, int val) {
91 bindings.UnsignedChannelUpdate_set_fee_base_msat(this_ptr.ptr & ~1, val);
92 this.ptrs_to.add(this_ptr);
95 public int get_fee_proportional_millionths(UnsignedChannelUpdate this_ptr) {
96 int ret = bindings.UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr.ptr & ~1);
97 this.ptrs_to.add(this_ptr);
101 public void set_fee_proportional_millionths(UnsignedChannelUpdate this_ptr, int val) {
102 bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr.ptr & ~1, val);
103 this.ptrs_to.add(this_ptr);
106 // Skipped UnsignedChannelUpdate_write
107 // Skipped UnsignedChannelUpdate_read