c4a0a13dbd4f55257959a632342661dc506b88f5
[ldk-java] / ts / structs / ChannelReestablish.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class ChannelReestablish extends CommonBase {
6         ChannelReestablish(Object _dummy, long ptr) { super(ptr); }
7         @Override @SuppressWarnings("deprecation")
8         protected void finalize() throws Throwable {
9                 super.finalize();
10                 if (ptr != 0) { bindings.ChannelReestablish_free(ptr); }
11         }
12
13         public ChannelReestablish clone() {
14                 uint32_t ret = bindings.ChannelReestablish_clone(this.ptr);
15                 ChannelReestablish ret_hu_conv = new ChannelReestablish(null, ret);
16                 return ret_hu_conv;
17         }
18
19         public byte[] get_channel_id() {
20                 byte[] ret = bindings.ChannelReestablish_get_channel_id(this.ptr);
21                 return ret;
22         }
23
24         public void set_channel_id(byte[] val) {
25                 bindings.ChannelReestablish_set_channel_id(this.ptr, val);
26         }
27
28         public long get_next_local_commitment_number() {
29                 long ret = bindings.ChannelReestablish_get_next_local_commitment_number(this.ptr);
30                 return ret;
31         }
32
33         public void set_next_local_commitment_number(long val) {
34                 bindings.ChannelReestablish_set_next_local_commitment_number(this.ptr, val);
35         }
36
37         public long get_next_remote_commitment_number() {
38                 long ret = bindings.ChannelReestablish_get_next_remote_commitment_number(this.ptr);
39                 return ret;
40         }
41
42         public void set_next_remote_commitment_number(long val) {
43                 bindings.ChannelReestablish_set_next_remote_commitment_number(this.ptr, val);
44         }
45
46         public byte[] write() {
47                 byte[] ret = bindings.ChannelReestablish_write(this.ptr);
48                 return ret;
49         }
50
51         public static Result_ChannelReestablishDecodeErrorZ constructor_read(byte[] ser) {
52                 uint32_t ret = bindings.ChannelReestablish_read(ser);
53                 Result_ChannelReestablishDecodeErrorZ ret_hu_conv = Result_ChannelReestablishDecodeErrorZ.constr_from_ptr(ret);
54                 return ret_hu_conv;
55         }
56
57 }