2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class ChannelMonitorUpdate extends CommonBase {
6 ChannelMonitorUpdate(Object _dummy, long ptr) { super(ptr); }
7 @Override @SuppressWarnings("deprecation")
8 protected void finalize() throws Throwable {
10 if (ptr != 0) { bindings.ChannelMonitorUpdate_free(ptr); }
13 public ChannelMonitorUpdate clone() {
14 uint32_t ret = bindings.ChannelMonitorUpdate_clone(this.ptr);
15 ChannelMonitorUpdate ret_hu_conv = new ChannelMonitorUpdate(null, ret);
19 public long get_update_id() {
20 long ret = bindings.ChannelMonitorUpdate_get_update_id(this.ptr);
24 public void set_update_id(long val) {
25 bindings.ChannelMonitorUpdate_set_update_id(this.ptr, val);
28 public byte[] write() {
29 byte[] ret = bindings.ChannelMonitorUpdate_write(this.ptr);
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);