3d2ef1784797bcfc9ed88c6d9946f56bb3272803
[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                 ret_hu_conv.ptrs_to.add(this);
25                 return ret_hu_conv;
26         }
27
28         public Uint8Array get_chain_hash() {
29                 Uint8Array ret = bindings.ReplyChannelRange_get_chain_hash(this.ptr);
30                 return ret;
31         }
32
33         public void set_chain_hash(Uint8Array val) {
34                 bindings.ReplyChannelRange_set_chain_hash(this.ptr, val);
35         }
36
37         public number get_first_blocknum() {
38                 number ret = bindings.ReplyChannelRange_get_first_blocknum(this.ptr);
39                 return ret;
40         }
41
42         public void set_first_blocknum(number val) {
43                 bindings.ReplyChannelRange_set_first_blocknum(this.ptr, val);
44         }
45
46         public number get_number_of_blocks() {
47                 number ret = bindings.ReplyChannelRange_get_number_of_blocks(this.ptr);
48                 return ret;
49         }
50
51         public void set_number_of_blocks(number val) {
52                 bindings.ReplyChannelRange_set_number_of_blocks(this.ptr, val);
53         }
54
55         public boolean get_full_information() {
56                 boolean ret = bindings.ReplyChannelRange_get_full_information(this.ptr);
57                 return ret;
58         }
59
60         public void set_full_information(boolean val) {
61                 bindings.ReplyChannelRange_set_full_information(this.ptr, val);
62         }
63
64         public void set_short_channel_ids(number[] val) {
65                 bindings.ReplyChannelRange_set_short_channel_ids(this.ptr, val);
66         }
67
68         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) {
69                 number ret = bindings.ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, full_information_arg, short_channel_ids_arg);
70                 const ret_hu_conv: ReplyChannelRange = new ReplyChannelRange(null, ret);
71                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
72                 return ret_hu_conv;
73         }
74
75         public static Result_ReplyChannelRangeDecodeErrorZ constructor_read(Uint8Array ser) {
76                 number ret = bindings.ReplyChannelRange_read(ser);
77                 Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
78                 return ret_hu_conv;
79         }
80
81         public Uint8Array write() {
82                 Uint8Array ret = bindings.ReplyChannelRange_write(this.ptr);
83                 return ret;
84         }
85
86 }