Update auto-generated bindings
[ldk-java] / ts / structs / InvoiceFeatures.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 InvoiceFeatures 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.InvoiceFeatures_free(this.ptr);
19                     }
20                 }
21         public InvoiceFeatures clone() {
22                 number ret = bindings.InvoiceFeatures_clone(this.ptr);
23                 const ret_hu_conv: InvoiceFeatures = new InvoiceFeatures(null, ret);
24                 ret_hu_conv.ptrs_to.add(this);
25                 return ret_hu_conv;
26         }
27
28         public static InvoiceFeatures constructor_empty() {
29                 number ret = bindings.InvoiceFeatures_empty();
30                 const ret_hu_conv: InvoiceFeatures = new InvoiceFeatures(null, ret);
31                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
32                 return ret_hu_conv;
33         }
34
35         public static InvoiceFeatures constructor_known() {
36                 number ret = bindings.InvoiceFeatures_known();
37                 const ret_hu_conv: InvoiceFeatures = new InvoiceFeatures(null, ret);
38                 ret_hu_conv.ptrs_to.add(ret_hu_conv);
39                 return ret_hu_conv;
40         }
41
42         public Uint8Array write() {
43                 Uint8Array ret = bindings.InvoiceFeatures_write(this.ptr);
44                 return ret;
45         }
46
47         public static Result_InvoiceFeaturesDecodeErrorZ constructor_read(Uint8Array ser) {
48                 number ret = bindings.InvoiceFeatures_read(ser);
49                 Result_InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret);
50                 return ret_hu_conv;
51         }
52
53 }