TS bindings
[ldk-java] / ts / structs / ReplyChannelRange.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class ReplyChannelRange extends CommonBase {
6         ReplyChannelRange(Object _dummy, long ptr) { super(ptr); }
7         @Override @SuppressWarnings("deprecation")
8         protected void finalize() throws Throwable {
9                 super.finalize();
10                 if (ptr != 0) { bindings.ReplyChannelRange_free(ptr); }
11         }
12
13         public ReplyChannelRange clone() {
14                 uint32_t ret = bindings.ReplyChannelRange_clone(this.ptr);
15                 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
16                 return ret_hu_conv;
17         }
18
19         public byte[] get_chain_hash() {
20                 byte[] ret = bindings.ReplyChannelRange_get_chain_hash(this.ptr);
21                 return ret;
22         }
23
24         public void set_chain_hash(byte[] val) {
25                 bindings.ReplyChannelRange_set_chain_hash(this.ptr, val);
26         }
27
28         public int get_first_blocknum() {
29                 int ret = bindings.ReplyChannelRange_get_first_blocknum(this.ptr);
30                 return ret;
31         }
32
33         public void set_first_blocknum(int val) {
34                 bindings.ReplyChannelRange_set_first_blocknum(this.ptr, val);
35         }
36
37         public int get_number_of_blocks() {
38                 int ret = bindings.ReplyChannelRange_get_number_of_blocks(this.ptr);
39                 return ret;
40         }
41
42         public void set_number_of_blocks(int val) {
43                 bindings.ReplyChannelRange_set_number_of_blocks(this.ptr, val);
44         }
45
46         public boolean get_full_information() {
47                 boolean ret = bindings.ReplyChannelRange_get_full_information(this.ptr);
48                 return ret;
49         }
50
51         public void set_full_information(boolean val) {
52                 bindings.ReplyChannelRange_set_full_information(this.ptr, val);
53         }
54
55         public void set_short_channel_ids(long[] val) {
56                 bindings.ReplyChannelRange_set_short_channel_ids(this.ptr, val);
57         }
58
59         public static ReplyChannelRange constructor_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, boolean full_information_arg, long[] short_channel_ids_arg) {
60                 uint32_t ret = bindings.ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, full_information_arg, short_channel_ids_arg);
61                 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
62                 return ret_hu_conv;
63         }
64
65         public static Result_ReplyChannelRangeDecodeErrorZ constructor_read(byte[] ser) {
66                 uint32_t ret = bindings.ReplyChannelRange_read(ser);
67                 Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
68                 return ret_hu_conv;
69         }
70
71         public byte[] write() {
72                 byte[] ret = bindings.ReplyChannelRange_write(this.ptr);
73                 return ret;
74         }
75
76 }