Create structs and traits that are (a bit) more human-friendly!
[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.ptr & ~1));
15                 this.ptrs_to.add(this_ptr);
16                 return ret;
17         }
18
19         public void set_features(NodeAnnouncementInfo this_ptr, NodeFeatures val) {
20                 bindings.NodeAnnouncementInfo_set_features(this_ptr.ptr & ~1, val.ptr & ~1);
21                 this.ptrs_to.add(this_ptr);
22                 this.ptrs_to.add(val);
23         }
24
25         public int get_last_update(NodeAnnouncementInfo this_ptr) {
26                 int ret = bindings.NodeAnnouncementInfo_get_last_update(this_ptr.ptr & ~1);
27                 this.ptrs_to.add(this_ptr);
28                 return ret;
29         }
30
31         public void set_last_update(NodeAnnouncementInfo this_ptr, int val) {
32                 bindings.NodeAnnouncementInfo_set_last_update(this_ptr.ptr & ~1, val);
33                 this.ptrs_to.add(this_ptr);
34         }
35
36         public byte[] get_rgb(NodeAnnouncementInfo this_ptr) {
37                 byte[] ret = bindings.NodeAnnouncementInfo_get_rgb(this_ptr.ptr & ~1);
38                 this.ptrs_to.add(this_ptr);
39                 return ret;
40         }
41
42         // Skipped NodeAnnouncementInfo_set_rgb
43         public byte[] get_alias(NodeAnnouncementInfo this_ptr) {
44                 byte[] ret = bindings.NodeAnnouncementInfo_get_alias(this_ptr.ptr & ~1);
45                 this.ptrs_to.add(this_ptr);
46                 return ret;
47         }
48
49         public void set_alias(NodeAnnouncementInfo this_ptr, byte[] val) {
50                 bindings.NodeAnnouncementInfo_set_alias(this_ptr.ptr & ~1, val);
51                 this.ptrs_to.add(this_ptr);
52         }
53
54         // Skipped NodeAnnouncementInfo_set_addresses
55         public NodeAnnouncement get_announcement_message(NodeAnnouncementInfo this_ptr) {
56                 NodeAnnouncement ret = new NodeAnnouncement(null, bindings.NodeAnnouncementInfo_get_announcement_message(this_ptr.ptr & ~1));
57                 this.ptrs_to.add(this_ptr);
58                 return ret;
59         }
60
61         public void set_announcement_message(NodeAnnouncementInfo this_ptr, NodeAnnouncement val) {
62                 bindings.NodeAnnouncementInfo_set_announcement_message(this_ptr.ptr & ~1, val.ptr & ~1);
63                 this.ptrs_to.add(this_ptr);
64                 this.ptrs_to.add(val);
65         }
66
67         // Skipped NodeAnnouncementInfo_new
68         // Skipped NodeAnnouncementInfo_write
69         // Skipped NodeAnnouncementInfo_read
70 }