2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class ReplyChannelRange extends CommonBase {
6 ReplyChannelRange(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.ReplyChannelRange_free(ptr); }
13 public ReplyChannelRange clone() {
14 uint32_t ret = bindings.ReplyChannelRange_clone(this.ptr);
15 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
19 public byte[] get_chain_hash() {
20 byte[] ret = bindings.ReplyChannelRange_get_chain_hash(this.ptr);
24 public void set_chain_hash(byte[] val) {
25 bindings.ReplyChannelRange_set_chain_hash(this.ptr, val);
28 public int get_first_blocknum() {
29 int ret = bindings.ReplyChannelRange_get_first_blocknum(this.ptr);
33 public void set_first_blocknum(int val) {
34 bindings.ReplyChannelRange_set_first_blocknum(this.ptr, val);
37 public int get_number_of_blocks() {
38 int ret = bindings.ReplyChannelRange_get_number_of_blocks(this.ptr);
42 public void set_number_of_blocks(int val) {
43 bindings.ReplyChannelRange_set_number_of_blocks(this.ptr, val);
46 public boolean get_full_information() {
47 boolean ret = bindings.ReplyChannelRange_get_full_information(this.ptr);
51 public void set_full_information(boolean val) {
52 bindings.ReplyChannelRange_set_full_information(this.ptr, val);
55 public void set_short_channel_ids(long[] val) {
56 bindings.ReplyChannelRange_set_short_channel_ids(this.ptr, val);
59 public static ReplyChannelRange constructor_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, boolean full_information_arg, long[] short_channel_ids_arg) {
60 uint32_t ret = bindings.ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, full_information_arg, short_channel_ids_arg);
61 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
65 public static Result_ReplyChannelRangeDecodeErrorZ constructor_read(byte[] ser) {
66 uint32_t ret = bindings.ReplyChannelRange_read(ser);
67 Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
71 public byte[] write() {
72 byte[] ret = bindings.ReplyChannelRange_write(this.ptr);