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