Update to support None
[ldk-java] / src / main / java / org / ldk / structs / ChannelMonitorUpdate.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
6 public class ChannelMonitorUpdate extends CommonBase {
7         ChannelMonitorUpdate(Object _dummy, long ptr) { super(ptr); }
8         @Override @SuppressWarnings("deprecation")
9         protected void finalize() throws Throwable {
10                 bindings.ChannelMonitorUpdate_free(ptr); super.finalize();
11         }
12
13         public ChannelMonitorUpdate(ChannelMonitorUpdate orig) {
14                 super(bindings.ChannelMonitorUpdate_clone(orig == null ? 0 : orig.ptr & ~1));
15                 this.ptrs_to.add(orig);
16         }
17
18         public long get_update_id(ChannelMonitorUpdate this_ptr) {
19                 long ret = bindings.ChannelMonitorUpdate_get_update_id(this_ptr == null ? 0 : this_ptr.ptr & ~1);
20                 this.ptrs_to.add(this_ptr);
21                 return ret;
22         }
23
24         public void set_update_id(ChannelMonitorUpdate this_ptr, long val) {
25                 bindings.ChannelMonitorUpdate_set_update_id(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
26                 this.ptrs_to.add(this_ptr);
27         }
28
29         // Skipped ChannelMonitorUpdate_write
30         public ChannelMonitorUpdate(byte[] ser) {
31                 super(bindings.ChannelMonitorUpdate_read(ser));
32         }
33
34 }