1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
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();
13 public UnsignedNodeAnnouncement(UnsignedNodeAnnouncement orig) {
14 super(bindings.UnsignedNodeAnnouncement_clone(orig == null ? 0 : orig.ptr & ~1));
15 this.ptrs_to.add(orig);
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);
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);
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);
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);
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);
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);
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);
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);
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);
69 // Skipped UnsignedNodeAnnouncement_set_addresses
70 // Skipped UnsignedNodeAnnouncement_write
71 public UnsignedNodeAnnouncement(byte[] ser) {
72 super(bindings.UnsignedNodeAnnouncement_read(ser));