Figure out java human types conversion stuff when doing all conv
[ldk-java] / src / main / java / org / ldk / structs / NodeInfo.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
6 public class NodeInfo extends CommonBase {
7         NodeInfo(Object _dummy, long ptr) { super(ptr); }
8         @Override @SuppressWarnings("deprecation")
9         protected void finalize() throws Throwable {
10                 super.finalize();
11                 bindings.NodeInfo_free(ptr);
12         }
13
14         // Skipped NodeInfo_set_channels
15         public RoutingFees get_lowest_inbound_channel_fees(NodeInfo this_ptr) {
16                 RoutingFees ret = new RoutingFees(null, bindings.NodeInfo_get_lowest_inbound_channel_fees(this_ptr == null ? 0 : this_ptr.ptr & ~1));
17                 this.ptrs_to.add(this_ptr);
18                 return ret;
19         }
20
21         public void set_lowest_inbound_channel_fees(NodeInfo this_ptr, RoutingFees val) {
22                 bindings.NodeInfo_set_lowest_inbound_channel_fees(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
23                 this.ptrs_to.add(this_ptr);
24                 this.ptrs_to.add(val);
25         }
26
27         public NodeAnnouncementInfo get_announcement_info(NodeInfo this_ptr) {
28                 NodeAnnouncementInfo ret = new NodeAnnouncementInfo(null, bindings.NodeInfo_get_announcement_info(this_ptr == null ? 0 : this_ptr.ptr & ~1));
29                 this.ptrs_to.add(this_ptr);
30                 return ret;
31         }
32
33         // Skipped NodeInfo_set_announcement_info
34         // Skipped NodeInfo_new
35         // Skipped NodeInfo_write
36         public NodeInfo(byte[] ser) {
37                 super(bindings.NodeInfo_read(ser));
38         }
39
40 }