]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/ChannelMonitorUpdate.ts
Update auto-generate bindings (incl new RL clone methods)
[ldk-java] / ts / structs / ChannelMonitorUpdate.ts
1
2             
3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
5
6
7
8             export default class ChannelMonitorUpdate extends CommonBase {
9                 constructor(_dummy: object, ptr: number) {
10                     super(ptr);
11                 }
12
13                 
14                 protected finalize() {
15                     super.finalize();
16
17                     if (this.ptr != 0) {
18                         bindings.ChannelMonitorUpdate_free(this.ptr);
19                     }
20                 }
21         public number get_update_id() {
22                 number ret = bindings.ChannelMonitorUpdate_get_update_id(this.ptr);
23                 return ret;
24         }
25
26         public void set_update_id(number val) {
27                 bindings.ChannelMonitorUpdate_set_update_id(this.ptr, val);
28         }
29
30         public ChannelMonitorUpdate clone() {
31                 number ret = bindings.ChannelMonitorUpdate_clone(this.ptr);
32                 const ret_hu_conv: ChannelMonitorUpdate = new ChannelMonitorUpdate(null, ret);
33                 ret_hu_conv.ptrs_to.add(this);
34                 return ret_hu_conv;
35         }
36
37         public Uint8Array write() {
38                 Uint8Array ret = bindings.ChannelMonitorUpdate_write(this.ptr);
39                 return ret;
40         }
41
42         public static Result_ChannelMonitorUpdateDecodeErrorZ constructor_read(Uint8Array ser) {
43                 number ret = bindings.ChannelMonitorUpdate_read(ser);
44                 Result_ChannelMonitorUpdateDecodeErrorZ ret_hu_conv = Result_ChannelMonitorUpdateDecodeErrorZ.constr_from_ptr(ret);
45                 return ret_hu_conv;
46         }
47
48 }