21934785eff96df486b0eb406b41f4fe5a1466d6
[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 byte[] get_chain_hash() {
18                 byte[] ret = bindings.ReplyChannelRange_get_chain_hash(this.ptr);
19                 return ret;
20         }
21
22         public void set_chain_hash(byte[] val) {
23                 bindings.ReplyChannelRange_set_chain_hash(this.ptr, val);
24         }
25
26         public int get_first_blocknum() {
27                 int ret = bindings.ReplyChannelRange_get_first_blocknum(this.ptr);
28                 return ret;
29         }
30
31         public void set_first_blocknum(int val) {
32                 bindings.ReplyChannelRange_set_first_blocknum(this.ptr, val);
33         }
34
35         public int get_number_of_blocks() {
36                 int ret = bindings.ReplyChannelRange_get_number_of_blocks(this.ptr);
37                 return ret;
38         }
39
40         public void set_number_of_blocks(int val) {
41                 bindings.ReplyChannelRange_set_number_of_blocks(this.ptr, val);
42         }
43
44         public boolean get_sync_complete() {
45                 boolean ret = bindings.ReplyChannelRange_get_sync_complete(this.ptr);
46                 return ret;
47         }
48
49         public void set_sync_complete(boolean val) {
50                 bindings.ReplyChannelRange_set_sync_complete(this.ptr, val);
51         }
52
53         public void set_short_channel_ids(long[] val) {
54                 bindings.ReplyChannelRange_set_short_channel_ids(this.ptr, val);
55         }
56
57         public static ReplyChannelRange constructor_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg, boolean sync_complete_arg, long[] short_channel_ids_arg) {
58                 long ret = bindings.ReplyChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg, sync_complete_arg, short_channel_ids_arg);
59                 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
60                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
61                 return ret_hu_conv;
62         }
63
64         public ReplyChannelRange clone() {
65                 long ret = bindings.ReplyChannelRange_clone(this.ptr);
66                 ReplyChannelRange ret_hu_conv = new ReplyChannelRange(null, ret);
67                 ret_hu_conv.ptrs_to.add(this);
68                 return ret_hu_conv;
69         }
70
71         public static Result_ReplyChannelRangeDecodeErrorZ constructor_read(byte[] ser) {
72                 long ret = bindings.ReplyChannelRange_read(ser);
73                 Result_ReplyChannelRangeDecodeErrorZ ret_hu_conv = Result_ReplyChannelRangeDecodeErrorZ.constr_from_ptr(ret);
74                 return ret_hu_conv;
75         }
76
77         public byte[] write() {
78                 byte[] ret = bindings.ReplyChannelRange_write(this.ptr);
79                 return ret;
80         }
81
82 }