]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/TwoTuple_u32TxOutZ.ts
Update auto-updated Java files
[ldk-java] / ts / structs / TwoTuple_u32TxOutZ.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_u32TxOutZ 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_u32TxOutZ_free(this.ptr);
19                     }
20                 }
21         public number get_a() {
22                 number ret = bindings.C2Tuple_u32TxOutZ_get_a(this.ptr);
23                 return ret;
24         }
25
26         public TxOut get_b() {
27                 number ret = bindings.C2Tuple_u32TxOutZ_get_b(this.ptr);
28                 TxOut ret_conv = new TxOut(null, ret);
29                 return ret_conv;
30         }
31
32         public number clone_ptr() {
33                 number ret = bindings.C2Tuple_u32TxOutZ_clone_ptr(this.ptr);
34                 return ret;
35         }
36
37         public TwoTuple_u32TxOutZ clone() {
38                 number ret = bindings.C2Tuple_u32TxOutZ_clone(this.ptr);
39                 TwoTuple_u32TxOutZ ret_hu_conv = new TwoTuple_u32TxOutZ(null, ret);
40                 ret_hu_conv.ptrs_to.add(this);
41                 return ret_hu_conv;
42         }
43
44         public static TwoTuple_u32TxOutZ constructor_new(number a, TxOut b) {
45                 number ret = bindings.C2Tuple_u32TxOutZ_new(a, b.ptr);
46                 TwoTuple_u32TxOutZ ret_hu_conv = new TwoTuple_u32TxOutZ(null, ret);
47                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
48                 return ret_hu_conv;
49         }
50
51 }