1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class RoutingFees extends CommonBase {
7 RoutingFees(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
10 bindings.RoutingFees_free(ptr); super.finalize();
13 public RoutingFees(RoutingFees orig) {
14 super(bindings.RoutingFees_clone(orig.ptr & ~1));
15 this.ptrs_to.add(orig);
18 public int get_base_msat(RoutingFees this_ptr) {
19 int ret = bindings.RoutingFees_get_base_msat(this_ptr.ptr & ~1);
20 this.ptrs_to.add(this_ptr);
24 public void set_base_msat(RoutingFees this_ptr, int val) {
25 bindings.RoutingFees_set_base_msat(this_ptr.ptr & ~1, val);
26 this.ptrs_to.add(this_ptr);
29 public int get_proportional_millionths(RoutingFees this_ptr) {
30 int ret = bindings.RoutingFees_get_proportional_millionths(this_ptr.ptr & ~1);
31 this.ptrs_to.add(this_ptr);
35 public void set_proportional_millionths(RoutingFees this_ptr, int val) {
36 bindings.RoutingFees_set_proportional_millionths(this_ptr.ptr & ~1, val);
37 this.ptrs_to.add(this_ptr);
40 public RoutingFees(int base_msat_arg, int proportional_millionths_arg) {
41 super(bindings.RoutingFees_new(base_msat_arg, proportional_millionths_arg));
44 // Skipped RoutingFees_read
45 // Skipped RoutingFees_write