2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class ReplyShortChannelIdsEnd extends CommonBase {
6 ReplyShortChannelIdsEnd(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.ReplyShortChannelIdsEnd_free(ptr); }
13 public ReplyShortChannelIdsEnd clone() {
14 uint32_t ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr);
15 ReplyShortChannelIdsEnd ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret);
19 public byte[] get_chain_hash() {
20 byte[] ret = bindings.ReplyShortChannelIdsEnd_get_chain_hash(this.ptr);
24 public void set_chain_hash(byte[] val) {
25 bindings.ReplyShortChannelIdsEnd_set_chain_hash(this.ptr, val);
28 public boolean get_full_information() {
29 boolean ret = bindings.ReplyShortChannelIdsEnd_get_full_information(this.ptr);
33 public void set_full_information(boolean val) {
34 bindings.ReplyShortChannelIdsEnd_set_full_information(this.ptr, val);
37 public static ReplyShortChannelIdsEnd constructor_new(byte[] chain_hash_arg, boolean full_information_arg) {
38 uint32_t ret = bindings.ReplyShortChannelIdsEnd_new(chain_hash_arg, full_information_arg);
39 ReplyShortChannelIdsEnd ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret);
43 public static Result_ReplyShortChannelIdsEndDecodeErrorZ constructor_read(byte[] ser) {
44 uint32_t ret = bindings.ReplyShortChannelIdsEnd_read(ser);
45 Result_ReplyShortChannelIdsEndDecodeErrorZ ret_hu_conv = Result_ReplyShortChannelIdsEndDecodeErrorZ.constr_from_ptr(ret);
49 public byte[] write() {
50 byte[] ret = bindings.ReplyShortChannelIdsEnd_write(this.ptr);