- 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 constructor_new(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;
+ }
+
+ /**
+ * Creates a copy of the UpdateFee
+ */
+ public UpdateFee clone() {
+ long ret = bindings.UpdateFee_clone(this.ptr);
+ UpdateFee ret_hu_conv = new UpdateFee(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;