1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class NodeAnnouncementInfo extends CommonBase {
7 NodeAnnouncementInfo(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
10 bindings.NodeAnnouncementInfo_free(ptr); super.finalize();
13 public NodeFeatures get_features(NodeAnnouncementInfo this_ptr) {
14 NodeFeatures ret = new NodeFeatures(null, bindings.NodeAnnouncementInfo_get_features(this_ptr == null ? 0 : this_ptr.ptr & ~1));
15 this.ptrs_to.add(this_ptr);
19 // Skipped NodeAnnouncementInfo_set_features
20 public int get_last_update(NodeAnnouncementInfo this_ptr) {
21 int ret = bindings.NodeAnnouncementInfo_get_last_update(this_ptr == null ? 0 : this_ptr.ptr & ~1);
22 this.ptrs_to.add(this_ptr);
26 public void set_last_update(NodeAnnouncementInfo this_ptr, int val) {
27 bindings.NodeAnnouncementInfo_set_last_update(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
28 this.ptrs_to.add(this_ptr);
31 public byte[] get_rgb(NodeAnnouncementInfo this_ptr) {
32 byte[] ret = bindings.NodeAnnouncementInfo_get_rgb(this_ptr == null ? 0 : this_ptr.ptr & ~1);
33 this.ptrs_to.add(this_ptr);
37 public void set_rgb(NodeAnnouncementInfo this_ptr, byte[] val) {
38 bindings.NodeAnnouncementInfo_set_rgb(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
39 this.ptrs_to.add(this_ptr);
42 public byte[] get_alias(NodeAnnouncementInfo this_ptr) {
43 byte[] ret = bindings.NodeAnnouncementInfo_get_alias(this_ptr == null ? 0 : this_ptr.ptr & ~1);
44 this.ptrs_to.add(this_ptr);
48 public void set_alias(NodeAnnouncementInfo this_ptr, byte[] val) {
49 bindings.NodeAnnouncementInfo_set_alias(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
50 this.ptrs_to.add(this_ptr);
53 // Skipped NodeAnnouncementInfo_set_addresses
54 public NodeAnnouncement get_announcement_message(NodeAnnouncementInfo this_ptr) {
55 NodeAnnouncement ret = new NodeAnnouncement(null, bindings.NodeAnnouncementInfo_get_announcement_message(this_ptr == null ? 0 : this_ptr.ptr & ~1));
56 this.ptrs_to.add(this_ptr);
60 public void set_announcement_message(NodeAnnouncementInfo this_ptr, NodeAnnouncement val) {
61 bindings.NodeAnnouncementInfo_set_announcement_message(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
62 this.ptrs_to.add(this_ptr);
63 this.ptrs_to.add(val);
66 // Skipped NodeAnnouncementInfo_new
67 // Skipped NodeAnnouncementInfo_write
68 public NodeAnnouncementInfo(byte[] ser) {
69 super(bindings.NodeAnnouncementInfo_read(ser));