59f65ce5763cd066ed4601f115421f7332ed4f61
[ldk-java] / src / main / java / org / ldk / structs / RoutingFees.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
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();
11         }
12
13         public RoutingFees(RoutingFees orig) {
14                 super(bindings.RoutingFees_clone(orig == null ? 0 : orig.ptr & ~1));
15                 this.ptrs_to.add(orig);
16         }
17
18         public int get_base_msat(RoutingFees this_ptr) {
19                 int ret = bindings.RoutingFees_get_base_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1);
20                 this.ptrs_to.add(this_ptr);
21                 return ret;
22         }
23
24         public void set_base_msat(RoutingFees this_ptr, int val) {
25                 bindings.RoutingFees_set_base_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
26                 this.ptrs_to.add(this_ptr);
27         }
28
29         public int get_proportional_millionths(RoutingFees this_ptr) {
30                 int ret = bindings.RoutingFees_get_proportional_millionths(this_ptr == null ? 0 : this_ptr.ptr & ~1);
31                 this.ptrs_to.add(this_ptr);
32                 return ret;
33         }
34
35         public void set_proportional_millionths(RoutingFees this_ptr, int val) {
36                 bindings.RoutingFees_set_proportional_millionths(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
37                 this.ptrs_to.add(this_ptr);
38         }
39
40         public RoutingFees(int base_msat_arg, int proportional_millionths_arg) {
41                 super(bindings.RoutingFees_new(base_msat_arg, proportional_millionths_arg));
42         }
43
44         public RoutingFees(byte[] ser) {
45                 super(bindings.RoutingFees_read(ser));
46         }
47
48         // Skipped RoutingFees_write
49 }