Bindings updates
[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 QueryShortChannelIds clone() {
22                 number ret = bindings.QueryShortChannelIds_clone(this.ptr);
23                 const ret_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(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.QueryShortChannelIds_get_chain_hash(this.ptr);
30                 return ret;
31         }
32
33         public void set_chain_hash(Uint8Array val) {
34                 bindings.QueryShortChannelIds_set_chain_hash(this.ptr, val);
35         }
36
37         public void set_short_channel_ids(number[] val) {
38                 bindings.QueryShortChannelIds_set_short_channel_ids(this.ptr, val);
39         }
40
41         public static QueryShortChannelIds constructor_new(Uint8Array chain_hash_arg, number[] short_channel_ids_arg) {
42                 number ret = bindings.QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
43                 const ret_hu_conv: QueryShortChannelIds = new QueryShortChannelIds(null, ret);
44                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
45                 return ret_hu_conv;
46         }
47
48         public static Result_QueryShortChannelIdsDecodeErrorZ constructor_read(Uint8Array ser) {
49                 number ret = bindings.QueryShortChannelIds_read(ser);
50                 Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
51                 return ret_hu_conv;
52         }
53
54         public Uint8Array write() {
55                 Uint8Array ret = bindings.QueryShortChannelIds_write(this.ptr);
56                 return ret;
57         }
58
59 }