Skip methods we can't use anyway
[ldk-java] / src / main / java / org / ldk / structs / NodeAnnouncementInfo.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
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();
11         }
12
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);
16                 return ret;
17         }
18
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);
23                 return ret;
24         }
25
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);
29         }
30
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);
34                 return ret;
35         }
36
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);
40         }
41
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);
45                 return ret;
46         }
47
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);
51         }
52
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);
57                 return ret;
58         }
59
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);
64         }
65
66         // Skipped NodeAnnouncementInfo_new
67         // Skipped NodeAnnouncementInfo_write
68         public NodeAnnouncementInfo(byte[] ser) {
69                 super(bindings.NodeAnnouncementInfo_read(ser));
70         }
71
72 }