Skip methods we can't use anyway
[ldk-java] / src / main / java / org / ldk / structs / UnsignedNodeAnnouncement.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
6 public class UnsignedNodeAnnouncement extends CommonBase {
7         UnsignedNodeAnnouncement(Object _dummy, long ptr) { super(ptr); }
8         @Override @SuppressWarnings("deprecation")
9         protected void finalize() throws Throwable {
10                 bindings.UnsignedNodeAnnouncement_free(ptr); super.finalize();
11         }
12
13         public UnsignedNodeAnnouncement(UnsignedNodeAnnouncement orig) {
14                 super(bindings.UnsignedNodeAnnouncement_clone(orig == null ? 0 : orig.ptr & ~1));
15                 this.ptrs_to.add(orig);
16         }
17
18         public NodeFeatures get_features(UnsignedNodeAnnouncement this_ptr) {
19                 NodeFeatures ret = new NodeFeatures(null, bindings.UnsignedNodeAnnouncement_get_features(this_ptr == null ? 0 : this_ptr.ptr & ~1));
20                 this.ptrs_to.add(this_ptr);
21                 return ret;
22         }
23
24         // Skipped UnsignedNodeAnnouncement_set_features
25         public int get_timestamp(UnsignedNodeAnnouncement this_ptr) {
26                 int ret = bindings.UnsignedNodeAnnouncement_get_timestamp(this_ptr == null ? 0 : this_ptr.ptr & ~1);
27                 this.ptrs_to.add(this_ptr);
28                 return ret;
29         }
30
31         public void set_timestamp(UnsignedNodeAnnouncement this_ptr, int val) {
32                 bindings.UnsignedNodeAnnouncement_set_timestamp(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
33                 this.ptrs_to.add(this_ptr);
34         }
35
36         public byte[] get_node_id(UnsignedNodeAnnouncement this_ptr) {
37                 byte[] ret = bindings.UnsignedNodeAnnouncement_get_node_id(this_ptr == null ? 0 : this_ptr.ptr & ~1);
38                 this.ptrs_to.add(this_ptr);
39                 return ret;
40         }
41
42         public void set_node_id(UnsignedNodeAnnouncement this_ptr, byte[] val) {
43                 bindings.UnsignedNodeAnnouncement_set_node_id(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
44                 this.ptrs_to.add(this_ptr);
45         }
46
47         public byte[] get_rgb(UnsignedNodeAnnouncement this_ptr) {
48                 byte[] ret = bindings.UnsignedNodeAnnouncement_get_rgb(this_ptr == null ? 0 : this_ptr.ptr & ~1);
49                 this.ptrs_to.add(this_ptr);
50                 return ret;
51         }
52
53         public void set_rgb(UnsignedNodeAnnouncement this_ptr, byte[] val) {
54                 bindings.UnsignedNodeAnnouncement_set_rgb(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
55                 this.ptrs_to.add(this_ptr);
56         }
57
58         public byte[] get_alias(UnsignedNodeAnnouncement this_ptr) {
59                 byte[] ret = bindings.UnsignedNodeAnnouncement_get_alias(this_ptr == null ? 0 : this_ptr.ptr & ~1);
60                 this.ptrs_to.add(this_ptr);
61                 return ret;
62         }
63
64         public void set_alias(UnsignedNodeAnnouncement this_ptr, byte[] val) {
65                 bindings.UnsignedNodeAnnouncement_set_alias(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
66                 this.ptrs_to.add(this_ptr);
67         }
68
69         // Skipped UnsignedNodeAnnouncement_set_addresses
70         // Skipped UnsignedNodeAnnouncement_write
71         public UnsignedNodeAnnouncement(byte[] ser) {
72                 super(bindings.UnsignedNodeAnnouncement_read(ser));
73         }
74
75 }