TS bindings
[ldk-java] / ts / structs / ReplyShortChannelIdsEnd.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class ReplyShortChannelIdsEnd extends CommonBase {
6         ReplyShortChannelIdsEnd(Object _dummy, long ptr) { super(ptr); }
7         @Override @SuppressWarnings("deprecation")
8         protected void finalize() throws Throwable {
9                 super.finalize();
10                 if (ptr != 0) { bindings.ReplyShortChannelIdsEnd_free(ptr); }
11         }
12
13         public ReplyShortChannelIdsEnd clone() {
14                 uint32_t ret = bindings.ReplyShortChannelIdsEnd_clone(this.ptr);
15                 ReplyShortChannelIdsEnd ret_hu_conv = new ReplyShortChannelIdsEnd(null, ret);
16                 return ret_hu_conv;
17         }
18
19         public byte[] get_chain_hash() {
20                 byte[] ret = bindings.ReplyShortChannelIdsEnd_get_chain_hash(this.ptr);
21                 return ret;
22         }
23
24         public void set_chain_hash(byte[] val) {
25                 bindings.ReplyShortChannelIdsEnd_set_chain_hash(this.ptr, val);
26         }
27
28         public boolean get_full_information() {
29                 boolean ret = bindings.ReplyShortChannelIdsEnd_get_full_information(this.ptr);
30                 return ret;
31         }
32
33         public void set_full_information(boolean val) {
34                 bindings.ReplyShortChannelIdsEnd_set_full_information(this.ptr, val);
35         }
36
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);
40                 return ret_hu_conv;
41         }
42
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);
46                 return ret_hu_conv;
47         }
48
49         public byte[] write() {
50                 byte[] ret = bindings.ReplyShortChannelIdsEnd_write(this.ptr);
51                 return ret;
52         }
53
54 }