Updated bindings
[ldk-java] / src / main / java / org / ldk / structs / QueryChannelRange.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5 import org.ldk.util.*;
6 import java.util.Arrays;
7
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class QueryChannelRange extends CommonBase {
10         QueryChannelRange(Object _dummy, long ptr) { super(ptr); }
11         @Override @SuppressWarnings("deprecation")
12         protected void finalize() throws Throwable {
13                 super.finalize();
14                 if (ptr != 0) { bindings.QueryChannelRange_free(ptr); }
15         }
16
17         public QueryChannelRange clone() {
18                 long ret = bindings.QueryChannelRange_clone(this.ptr);
19                 QueryChannelRange ret_hu_conv = new QueryChannelRange(null, ret);
20                 return ret_hu_conv;
21         }
22
23         public byte[] get_chain_hash() {
24                 byte[] ret = bindings.QueryChannelRange_get_chain_hash(this.ptr);
25                 return ret;
26         }
27
28         public void set_chain_hash(byte[] val) {
29                 bindings.QueryChannelRange_set_chain_hash(this.ptr, val);
30         }
31
32         public int get_first_blocknum() {
33                 int ret = bindings.QueryChannelRange_get_first_blocknum(this.ptr);
34                 return ret;
35         }
36
37         public void set_first_blocknum(int val) {
38                 bindings.QueryChannelRange_set_first_blocknum(this.ptr, val);
39         }
40
41         public int get_number_of_blocks() {
42                 int ret = bindings.QueryChannelRange_get_number_of_blocks(this.ptr);
43                 return ret;
44         }
45
46         public void set_number_of_blocks(int val) {
47                 bindings.QueryChannelRange_set_number_of_blocks(this.ptr, val);
48         }
49
50         public static QueryChannelRange constructor_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg) {
51                 long ret = bindings.QueryChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg);
52                 QueryChannelRange ret_hu_conv = new QueryChannelRange(null, ret);
53                 return ret_hu_conv;
54         }
55
56         public static Result_QueryChannelRangeDecodeErrorZ constructor_read(byte[] ser) {
57                 long ret = bindings.QueryChannelRange_read(ser);
58                 Result_QueryChannelRangeDecodeErrorZ ret_hu_conv = Result_QueryChannelRangeDecodeErrorZ.constr_from_ptr(ret);
59                 return ret_hu_conv;
60         }
61
62         public byte[] write() {
63                 byte[] ret = bindings.QueryChannelRange_write(this.ptr);
64                 return ret;
65         }
66
67 }