]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/TwoTuple_BlockHashChannelMonitorZ.ts
Update auto-updated Java files
[ldk-java] / ts / structs / TwoTuple_BlockHashChannelMonitorZ.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 C2Tuple_BlockHashChannelMonitorZ 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.C2Tuple_BlockHashChannelMonitorZ_free(this.ptr);
19                     }
20                 }
21         public Uint8Array get_a() {
22                 Uint8Array ret = bindings.C2Tuple_BlockHashChannelMonitorZ_get_a(this.ptr);
23                 return ret;
24         }
25
26         public ChannelMonitor get_b() {
27                 number ret = bindings.C2Tuple_BlockHashChannelMonitorZ_get_b(this.ptr);
28                 const ret_hu_conv: ChannelMonitor = new ChannelMonitor(null, ret);
29                 ret_hu_conv.ptrs_to.add(this);
30                 return ret_hu_conv;
31         }
32
33         public number clone_ptr() {
34                 number ret = bindings.C2Tuple_BlockHashChannelMonitorZ_clone_ptr(this.ptr);
35                 return ret;
36         }
37
38         public TwoTuple_BlockHashChannelMonitorZ clone() {
39                 number ret = bindings.C2Tuple_BlockHashChannelMonitorZ_clone(this.ptr);
40                 TwoTuple_BlockHashChannelMonitorZ ret_hu_conv = new TwoTuple_BlockHashChannelMonitorZ(null, ret);
41                 ret_hu_conv.ptrs_to.add(this);
42                 return ret_hu_conv;
43         }
44
45         public static TwoTuple_BlockHashChannelMonitorZ constructor_new(Uint8Array a, ChannelMonitor b) {
46                 number ret = bindings.C2Tuple_BlockHashChannelMonitorZ_new(InternalUtils.check_arr_len(a, 32), b == null ? 0 : b.ptr & ~1);
47                 TwoTuple_BlockHashChannelMonitorZ ret_hu_conv = new TwoTuple_BlockHashChannelMonitorZ(null, ret);
48                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
49                 return ret_hu_conv;
50         }
51
52 }