Update auto-generated bindings
[ldk-java] / ts / structs / QueryShortChannelIds.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 QueryShortChannelIds 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.QueryShortChannelIds_free(this.ptr);
19                     }
20                 }
21         public Uint8Array get_chain_hash() {
22                 Uint8Array ret = bindings.QueryShortChannelIds_get_chain_hash(this.ptr);
23                 return ret;
24         }
25
26         public void set_chain_hash(Uint8Array val) {
27                 bindings.QueryShortChannelIds_set_chain_hash(this.ptr, InternalUtils.check_arr_len(val, 32));
28         }
29
30         public void set_short_channel_ids(number[] val) {
31                 bindings.QueryShortChannelIds_set_short_channel_ids(this.ptr, val);
32         }
33
34         public static QueryShortChannelIds constructor_new(Uint8Array chain_hash_arg, number[] short_channel_ids_arg) {
35                 number ret = bindings.QueryShortChannelIds_new(InternalUtils.check_arr_len(chain_hash_arg, 32), short_channel_ids_arg);
36                 const ret_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, ret);
37                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
38                 return ret_hu_conv;
39         }
40
41         public number clone_ptr() {
42                 number ret = bindings.QueryShortChannelIds_clone_ptr(this.ptr);
43                 return ret;
44         }
45
46         public QueryShortChannelIds clone() {
47                 number ret = bindings.QueryShortChannelIds_clone(this.ptr);
48                 const ret_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, ret);
49                 ret_hu_conv.ptrs_to.add(this);
50                 return ret_hu_conv;
51         }
52
53         public static Result_QueryShortChannelIdsDecodeErrorZ constructor_read(Uint8Array ser) {
54                 number ret = bindings.QueryShortChannelIds_read(ser);
55                 Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
56                 return ret_hu_conv;
57         }
58
59         public Uint8Array write() {
60                 Uint8Array ret = bindings.QueryShortChannelIds_write(this.ptr);
61                 return ret;
62         }
63
64 }