2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class QueryShortChannelIds extends CommonBase {
6 QueryShortChannelIds(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.QueryShortChannelIds_free(ptr); }
13 public QueryShortChannelIds clone() {
14 uint32_t ret = bindings.QueryShortChannelIds_clone(this.ptr);
15 QueryShortChannelIds ret_hu_conv = new QueryShortChannelIds(null, ret);
19 public byte[] get_chain_hash() {
20 byte[] ret = bindings.QueryShortChannelIds_get_chain_hash(this.ptr);
24 public void set_chain_hash(byte[] val) {
25 bindings.QueryShortChannelIds_set_chain_hash(this.ptr, val);
28 public void set_short_channel_ids(long[] val) {
29 bindings.QueryShortChannelIds_set_short_channel_ids(this.ptr, val);
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);
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);
44 public byte[] write() {
45 byte[] ret = bindings.QueryShortChannelIds_write(this.ptr);