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