ac5bb1b1a3409f374ee0ba817867fcb42ca8cf6a
[ldk-java] / src / main / java / org / ldk / structs / ReplyChannelRange.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 ReplyChannelRange extends CommonBase {
10         ReplyChannelRange(Object _dummy, long ptr) { super(ptr); }
11         @Override @SuppressWarnings("deprecation")
12         protected void finalize() throws Throwable {
13                 super.finalize();
14                 if (ptr != 0) { bindings.ReplyChannelRange_free(ptr); }
15         }
16
17         public static ReplyChannelRange constructor_clone(ReplyChannelRange orig) {
18                 long ret = bindings.ReplyChannelRange_clone(orig == null ? 0 : orig.ptr & ~1);
19                 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
20                 ret_hu_conv.ptrs_to.add(orig);
21                 return ret_hu_conv;
22         }
23
24         public byte[] get_chain_hash() {
25                 byte[] ret = bindings.ReplyChannelRange_get_chain_hash(this.ptr);
26                 return ret;
27         }
28
29         public void set_chain_hash(byte[] val) {
30                 bindings.ReplyChannelRange_set_chain_hash(this.ptr, val);
31         }
32
33         public int get_first_blocknum() {
34                 int ret = bindings.ReplyChannelRange_get_first_blocknum(this.ptr);
35                 return ret;
36         }
37
38         public void set_first_blocknum(int val) {
39                 bindings.ReplyChannelRange_set_first_blocknum(this.ptr, val);
40         }
41
42         public int get_number_of_blocks() {
43                 int ret = bindings.ReplyChannelRange_get_number_of_blocks(this.ptr);
44                 return ret;
45         }
46
47         public void set_number_of_blocks(int val) {
48                 bindings.ReplyChannelRange_set_number_of_blocks(this.ptr, val);
49         }
50
51         public boolean get_full_information() {
52                 boolean ret = bindings.ReplyChannelRange_get_full_information(this.ptr);
53                 return ret;
54         }
55
56         public void set_full_information(boolean val) {
57                 bindings.ReplyChannelRange_set_full_information(this.ptr, val);
58         }
59
60         public void set_short_channel_ids(long[] val) {
61                 bindings.ReplyChannelRange_set_short_channel_ids(this.ptr, val);
62         }
63
64         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) {
65                 long ret = bindings.ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, full_information_arg, short_channel_ids_arg);
66                 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
67                 return ret_hu_conv;
68         }
69
70         public static ReplyChannelRange constructor_read(byte[] ser) {
71                 long ret = bindings.ReplyChannelRange_read(ser);
72                 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
73                 return ret_hu_conv;
74         }
75
76         public byte[] write(ReplyChannelRange obj) {
77                 byte[] ret = bindings.ReplyChannelRange_write(obj == null ? 0 : obj.ptr & ~1);
78                 this.ptrs_to.add(obj);
79                 return ret;
80         }
81
82 }