- public int get_feerate_per_kw(UpdateFee this_ptr) {
- int ret = bindings.UpdateFee_get_feerate_per_kw(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- return ret;
+ /**
+ * Constructs a new UpdateFee given each field
+ */
+ public static UpdateFee of(byte[] channel_id_arg, int feerate_per_kw_arg) {
+ long ret = bindings.UpdateFee_new(channel_id_arg, feerate_per_kw_arg);
+ UpdateFee ret_hu_conv = new UpdateFee(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;