eeec510d8e4a24b09febbe1f387de9918b44244c
[ldk-java] / ts / structs / UnsignedChannelUpdate.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class UnsignedChannelUpdate extends CommonBase {
6         UnsignedChannelUpdate(Object _dummy, long ptr) { super(ptr); }
7         @Override @SuppressWarnings("deprecation")
8         protected void finalize() throws Throwable {
9                 super.finalize();
10                 if (ptr != 0) { bindings.UnsignedChannelUpdate_free(ptr); }
11         }
12
13         public UnsignedChannelUpdate clone() {
14                 uint32_t ret = bindings.UnsignedChannelUpdate_clone(this.ptr);
15                 UnsignedChannelUpdate ret_hu_conv = new UnsignedChannelUpdate(null, ret);
16                 return ret_hu_conv;
17         }
18
19         public byte[] get_chain_hash() {
20                 byte[] ret = bindings.UnsignedChannelUpdate_get_chain_hash(this.ptr);
21                 return ret;
22         }
23
24         public void set_chain_hash(byte[] val) {
25                 bindings.UnsignedChannelUpdate_set_chain_hash(this.ptr, val);
26         }
27
28         public long get_short_channel_id() {
29                 long ret = bindings.UnsignedChannelUpdate_get_short_channel_id(this.ptr);
30                 return ret;
31         }
32
33         public void set_short_channel_id(long val) {
34                 bindings.UnsignedChannelUpdate_set_short_channel_id(this.ptr, val);
35         }
36
37         public int get_timestamp() {
38                 int ret = bindings.UnsignedChannelUpdate_get_timestamp(this.ptr);
39                 return ret;
40         }
41
42         public void set_timestamp(int val) {
43                 bindings.UnsignedChannelUpdate_set_timestamp(this.ptr, val);
44         }
45
46         public byte get_flags() {
47                 byte ret = bindings.UnsignedChannelUpdate_get_flags(this.ptr);
48                 return ret;
49         }
50
51         public void set_flags(byte val) {
52                 bindings.UnsignedChannelUpdate_set_flags(this.ptr, val);
53         }
54
55         public short get_cltv_expiry_delta() {
56                 short ret = bindings.UnsignedChannelUpdate_get_cltv_expiry_delta(this.ptr);
57                 return ret;
58         }
59
60         public void set_cltv_expiry_delta(short val) {
61                 bindings.UnsignedChannelUpdate_set_cltv_expiry_delta(this.ptr, val);
62         }
63
64         public long get_htlc_minimum_msat() {
65                 long ret = bindings.UnsignedChannelUpdate_get_htlc_minimum_msat(this.ptr);
66                 return ret;
67         }
68
69         public void set_htlc_minimum_msat(long val) {
70                 bindings.UnsignedChannelUpdate_set_htlc_minimum_msat(this.ptr, val);
71         }
72
73         public int get_fee_base_msat() {
74                 int ret = bindings.UnsignedChannelUpdate_get_fee_base_msat(this.ptr);
75                 return ret;
76         }
77
78         public void set_fee_base_msat(int val) {
79                 bindings.UnsignedChannelUpdate_set_fee_base_msat(this.ptr, val);
80         }
81
82         public int get_fee_proportional_millionths() {
83                 int ret = bindings.UnsignedChannelUpdate_get_fee_proportional_millionths(this.ptr);
84                 return ret;
85         }
86
87         public void set_fee_proportional_millionths(int val) {
88                 bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val);
89         }
90
91         public byte[] write() {
92                 byte[] ret = bindings.UnsignedChannelUpdate_write(this.ptr);
93                 return ret;
94         }
95
96         public static Result_UnsignedChannelUpdateDecodeErrorZ constructor_read(byte[] ser) {
97                 uint32_t ret = bindings.UnsignedChannelUpdate_read(ser);
98                 Result_UnsignedChannelUpdateDecodeErrorZ ret_hu_conv = Result_UnsignedChannelUpdateDecodeErrorZ.constr_from_ptr(ret);
99                 return ret_hu_conv;
100         }
101
102 }