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 {
11 bindings.UnsignedChannelUpdate_free(ptr);
14 public UnsignedChannelUpdate(UnsignedChannelUpdate orig) {
15 super(bindings.UnsignedChannelUpdate_clone(orig == null ? 0 : orig.ptr & ~1));
16 this.ptrs_to.add(orig);
19 public byte[] get_chain_hash(UnsignedChannelUpdate this_ptr) {
20 byte[] ret = bindings.UnsignedChannelUpdate_get_chain_hash(this_ptr == null ? 0 : this_ptr.ptr & ~1);
21 this.ptrs_to.add(this_ptr);
25 public void set_chain_hash(UnsignedChannelUpdate this_ptr, byte[] val) {
26 bindings.UnsignedChannelUpdate_set_chain_hash(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
27 this.ptrs_to.add(this_ptr);
30 public long get_short_channel_id(UnsignedChannelUpdate this_ptr) {
31 long ret = bindings.UnsignedChannelUpdate_get_short_channel_id(this_ptr == null ? 0 : this_ptr.ptr & ~1);
32 this.ptrs_to.add(this_ptr);
36 public void set_short_channel_id(UnsignedChannelUpdate this_ptr, long val) {
37 bindings.UnsignedChannelUpdate_set_short_channel_id(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
38 this.ptrs_to.add(this_ptr);
41 public int get_timestamp(UnsignedChannelUpdate this_ptr) {
42 int ret = bindings.UnsignedChannelUpdate_get_timestamp(this_ptr == null ? 0 : this_ptr.ptr & ~1);
43 this.ptrs_to.add(this_ptr);
47 public void set_timestamp(UnsignedChannelUpdate this_ptr, int val) {
48 bindings.UnsignedChannelUpdate_set_timestamp(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
49 this.ptrs_to.add(this_ptr);
52 public byte get_flags(UnsignedChannelUpdate this_ptr) {
53 byte ret = bindings.UnsignedChannelUpdate_get_flags(this_ptr == null ? 0 : this_ptr.ptr & ~1);
54 this.ptrs_to.add(this_ptr);
58 public void set_flags(UnsignedChannelUpdate this_ptr, byte val) {
59 bindings.UnsignedChannelUpdate_set_flags(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
60 this.ptrs_to.add(this_ptr);
63 public short get_cltv_expiry_delta(UnsignedChannelUpdate this_ptr) {
64 short ret = bindings.UnsignedChannelUpdate_get_cltv_expiry_delta(this_ptr == null ? 0 : this_ptr.ptr & ~1);
65 this.ptrs_to.add(this_ptr);
69 public void set_cltv_expiry_delta(UnsignedChannelUpdate this_ptr, short val) {
70 bindings.UnsignedChannelUpdate_set_cltv_expiry_delta(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
71 this.ptrs_to.add(this_ptr);
74 public long get_htlc_minimum_msat(UnsignedChannelUpdate this_ptr) {
75 long ret = bindings.UnsignedChannelUpdate_get_htlc_minimum_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1);
76 this.ptrs_to.add(this_ptr);
80 public void set_htlc_minimum_msat(UnsignedChannelUpdate this_ptr, long val) {
81 bindings.UnsignedChannelUpdate_set_htlc_minimum_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
82 this.ptrs_to.add(this_ptr);
85 public int get_fee_base_msat(UnsignedChannelUpdate this_ptr) {
86 int ret = bindings.UnsignedChannelUpdate_get_fee_base_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1);
87 this.ptrs_to.add(this_ptr);
91 public void set_fee_base_msat(UnsignedChannelUpdate this_ptr, int val) {
92 bindings.UnsignedChannelUpdate_set_fee_base_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
93 this.ptrs_to.add(this_ptr);
96 public int get_fee_proportional_millionths(UnsignedChannelUpdate this_ptr) {
97 int ret = bindings.UnsignedChannelUpdate_get_fee_proportional_millionths(this_ptr == null ? 0 : this_ptr.ptr & ~1);
98 this.ptrs_to.add(this_ptr);
102 public void set_fee_proportional_millionths(UnsignedChannelUpdate this_ptr, int val) {
103 bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
104 this.ptrs_to.add(this_ptr);
107 // Skipped UnsignedChannelUpdate_write
108 public UnsignedChannelUpdate(byte[] ser) {
109 super(bindings.UnsignedChannelUpdate_read(ser));