43a55d37217cf6a28c1c33b67baffefe1f3fc8e4
[ldk-java] / ts / structs / ChannelMonitorUpdate.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class ChannelMonitorUpdate extends CommonBase {
6         ChannelMonitorUpdate(Object _dummy, long ptr) { super(ptr); }
7         @Override @SuppressWarnings("deprecation")
8         protected void finalize() throws Throwable {
9                 super.finalize();
10                 if (ptr != 0) { bindings.ChannelMonitorUpdate_free(ptr); }
11         }
12
13         public ChannelMonitorUpdate clone() {
14                 uint32_t ret = bindings.ChannelMonitorUpdate_clone(this.ptr);
15                 ChannelMonitorUpdate ret_hu_conv = new ChannelMonitorUpdate(null, ret);
16                 return ret_hu_conv;
17         }
18
19         public long get_update_id() {
20                 long ret = bindings.ChannelMonitorUpdate_get_update_id(this.ptr);
21                 return ret;
22         }
23
24         public void set_update_id(long val) {
25                 bindings.ChannelMonitorUpdate_set_update_id(this.ptr, val);
26         }
27
28         public byte[] write() {
29                 byte[] ret = bindings.ChannelMonitorUpdate_write(this.ptr);
30                 return ret;
31         }
32
33         public static Result_ChannelMonitorUpdateDecodeErrorZ constructor_read(byte[] ser) {
34                 uint32_t ret = bindings.ChannelMonitorUpdate_read(ser);
35                 Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret);
36                 return ret_hu_conv;
37         }
38
39 }