--- /dev/null
+
+import CommonBase from './CommonBase';
+import * as bindings from '../bindings' // TODO: figure out location
+
+public class QueryChannelRange extends CommonBase {
+ QueryChannelRange(Object _dummy, long ptr) { super(ptr); }
+ @Override @SuppressWarnings("deprecation")
+ protected void finalize() throws Throwable {
+ super.finalize();
+ if (ptr != 0) { bindings.QueryChannelRange_free(ptr); }
+ }
+
+ public QueryChannelRange clone() {
+ uint32_t ret = bindings.QueryChannelRange_clone(this.ptr);
+ QueryChannelRange ret_hu_conv = new QueryChannelRange(null, ret);
+ return ret_hu_conv;
+ }
+
+ public byte[] get_chain_hash() {
+ byte[] ret = bindings.QueryChannelRange_get_chain_hash(this.ptr);
+ return ret;
+ }
+
+ public void set_chain_hash(byte[] val) {
+ bindings.QueryChannelRange_set_chain_hash(this.ptr, val);
+ }
+
+ public int get_first_blocknum() {
+ int ret = bindings.QueryChannelRange_get_first_blocknum(this.ptr);
+ return ret;
+ }
+
+ public void set_first_blocknum(int val) {
+ bindings.QueryChannelRange_set_first_blocknum(this.ptr, val);
+ }
+
+ public int get_number_of_blocks() {
+ int ret = bindings.QueryChannelRange_get_number_of_blocks(this.ptr);
+ return ret;
+ }
+
+ public void set_number_of_blocks(int val) {
+ bindings.QueryChannelRange_set_number_of_blocks(this.ptr, val);
+ }
+
+ public static QueryChannelRange constructor_new(byte[] chain_hash_arg, int first_blocknum_arg, int number_of_blocks_arg) {
+ uint32_t ret = bindings.QueryChannelRange_new(chain_hash_arg, first_blocknum_arg, number_of_blocks_arg);
+ QueryChannelRange ret_hu_conv = new QueryChannelRange(null, ret);
+ return ret_hu_conv;
+ }
+
+ public static Result_QueryChannelRangeDecodeErrorZ constructor_read(byte[] ser) {
+ uint32_t ret = bindings.QueryChannelRange_read(ser);
+ Result_QueryChannelRangeDecodeErrorZ ret_hu_conv = Result_QueryChannelRangeDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+
+ public byte[] write() {
+ byte[] ret = bindings.QueryChannelRange_write(this.ptr);
+ return ret;
+ }
+
+}