84fdd1047086e0c37eeefcd036bb2861236e73cb
[ldk-java] / ts / structs / QueryShortChannelIds.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class QueryShortChannelIds extends CommonBase {
6         QueryShortChannelIds(Object _dummy, long ptr) { super(ptr); }
7         @Override @SuppressWarnings("deprecation")
8         protected void finalize() throws Throwable {
9                 super.finalize();
10                 if (ptr != 0) { bindings.QueryShortChannelIds_free(ptr); }
11         }
12
13         public QueryShortChannelIds clone() {
14                 uint32_t ret = bindings.QueryShortChannelIds_clone(this.ptr);
15                 QueryShortChannelIds ret_hu_conv = new QueryShortChannelIds(null, ret);
16                 return ret_hu_conv;
17         }
18
19         public byte[] get_chain_hash() {
20                 byte[] ret = bindings.QueryShortChannelIds_get_chain_hash(this.ptr);
21                 return ret;
22         }
23
24         public void set_chain_hash(byte[] val) {
25                 bindings.QueryShortChannelIds_set_chain_hash(this.ptr, val);
26         }
27
28         public void set_short_channel_ids(long[] val) {
29                 bindings.QueryShortChannelIds_set_short_channel_ids(this.ptr, val);
30         }
31
32         public static QueryShortChannelIds constructor_new(byte[] chain_hash_arg, long[] short_channel_ids_arg) {
33                 uint32_t ret = bindings.QueryShortChannelIds_new(chain_hash_arg, short_channel_ids_arg);
34                 QueryShortChannelIds ret_hu_conv = new QueryShortChannelIds(null, ret);
35                 return ret_hu_conv;
36         }
37
38         public static Result_QueryShortChannelIdsDecodeErrorZ constructor_read(byte[] ser) {
39                 uint32_t ret = bindings.QueryShortChannelIds_read(ser);
40                 Result_QueryShortChannelIdsDecodeErrorZ ret_hu_conv = Result_QueryShortChannelIdsDecodeErrorZ.constr_from_ptr(ret);
41                 return ret_hu_conv;
42         }
43
44         public byte[] write() {
45                 byte[] ret = bindings.QueryShortChannelIds_write(this.ptr);
46                 return ret;
47         }
48
49 }