Create structs and traits that are (a bit) more human-friendly!
[ldk-java] / src / main / java / org / ldk / structs / UpdateFee.java
diff --git a/src/main/java/org/ldk/structs/UpdateFee.java b/src/main/java/org/ldk/structs/UpdateFee.java
new file mode 100644 (file)
index 0000000..49cc4fc
--- /dev/null
@@ -0,0 +1,46 @@
+package org.ldk.structs;
+
+import org.ldk.impl.bindings;
+import org.ldk.enums.*;
+
+public class UpdateFee extends CommonBase {
+       UpdateFee(Object _dummy, long ptr) { super(ptr); }
+       @Override @SuppressWarnings("deprecation")
+       protected void finalize() throws Throwable {
+               bindings.UpdateFee_free(ptr); super.finalize();
+       }
+
+       public UpdateFee(UpdateFee orig) {
+               super(bindings.UpdateFee_clone(orig.ptr & ~1));
+               this.ptrs_to.add(orig);
+       }
+
+       public byte[] get_channel_id(UpdateFee this_ptr) {
+               byte[] ret = bindings.UpdateFee_get_channel_id(this_ptr.ptr & ~1);
+               this.ptrs_to.add(this_ptr);
+               return ret;
+       }
+
+       public void set_channel_id(UpdateFee this_ptr, byte[] val) {
+               bindings.UpdateFee_set_channel_id(this_ptr.ptr & ~1, val);
+               this.ptrs_to.add(this_ptr);
+       }
+
+       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;
+       }
+
+       public void set_feerate_per_kw(UpdateFee this_ptr, int val) {
+               bindings.UpdateFee_set_feerate_per_kw(this_ptr.ptr & ~1, val);
+               this.ptrs_to.add(this_ptr);
+       }
+
+       public UpdateFee(byte[] channel_id_arg, int feerate_per_kw_arg) {
+               super(bindings.UpdateFee_new(channel_id_arg, feerate_per_kw_arg));
+       }
+
+       // Skipped UpdateFee_write
+       // Skipped UpdateFee_read
+}