1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class NodeInfo extends CommonBase {
7 NodeInfo(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
11 bindings.NodeInfo_free(ptr);
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);
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);
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);
33 // Skipped NodeInfo_set_announcement_info
34 // Skipped NodeInfo_new
35 public byte[] write(NodeInfo obj) {
36 byte[] ret = bindings.NodeInfo_write(obj == null ? 0 : obj.ptr & ~1);
37 this.ptrs_to.add(obj);
41 public NodeInfo(byte[] ser) {
42 super(bindings.NodeInfo_read(ser));