Make genbindings.sh only build one of java/wasm, test wasm in CI
[ldk-java] / ts / structs / Result_SignedRawInvoiceNoneZ.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
5 public class Result_SignedRawInvoiceNoneZ extends CommonBase {
6         private Result_SignedRawInvoiceNoneZ(Object _dummy, long ptr) { super(ptr); }
7         protected void finalize() throws Throwable {
8                 if (ptr != 0) { bindings.CResult_SignedRawInvoiceNoneZ_free(ptr); } super.finalize();
9         }
10
11         static Result_SignedRawInvoiceNoneZ constr_from_ptr(long ptr) {
12                 if (bindings.CResult_SignedRawInvoiceNoneZ_is_ok(ptr)) {
13                         return new Result_SignedRawInvoiceNoneZ_OK(null, ptr);
14                 } else {
15                         return new Result_SignedRawInvoiceNoneZ_Err(null, ptr);
16                 }
17         }
18         public static final class Result_SignedRawInvoiceNoneZ_OK extends Result_SignedRawInvoiceNoneZ {
19                 public final SignedRawInvoice res;
20                 private Result_SignedRawInvoiceNoneZ_OK(Object _dummy, long ptr) {
21                         super(_dummy, ptr);
22                         number res = bindings.LDKCResult_SignedRawInvoiceNoneZ_get_ok(ptr);
23                         const res_hu_conv: SignedRawInvoice = new SignedRawInvoice(null, res);
24                         res_hu_conv.ptrs_to.add(this);
25                         this.res = res_hu_conv;
26                 }
27         }
28
29         public static final class Result_SignedRawInvoiceNoneZ_Err extends Result_SignedRawInvoiceNoneZ {
30                 private Result_SignedRawInvoiceNoneZ_Err(Object _dummy, long ptr) {
31                         super(_dummy, ptr);
32                 }
33         }
34
35         public static Result_SignedRawInvoiceNoneZ constructor_ok(SignedRawInvoice o) {
36                 number ret = bindings.CResult_SignedRawInvoiceNoneZ_ok(o == null ? 0 : o.ptr & ~1);
37                 Result_SignedRawInvoiceNoneZ ret_hu_conv = Result_SignedRawInvoiceNoneZ.constr_from_ptr(ret);
38                 return ret_hu_conv;
39         }
40
41         public static Result_SignedRawInvoiceNoneZ constructor_err() {
42                 number ret = bindings.CResult_SignedRawInvoiceNoneZ_err();
43                 Result_SignedRawInvoiceNoneZ ret_hu_conv = Result_SignedRawInvoiceNoneZ.constr_from_ptr(ret);
44                 return ret_hu_conv;
45         }
46
47         public boolean is_ok() {
48                 boolean ret = bindings.CResult_SignedRawInvoiceNoneZ_is_ok(this.ptr);
49                 return ret;
50         }
51
52         public number clone_ptr() {
53                 number ret = bindings.CResult_SignedRawInvoiceNoneZ_clone_ptr(this.ptr);
54                 return ret;
55         }
56
57         public Result_SignedRawInvoiceNoneZ clone() {
58                 number ret = bindings.CResult_SignedRawInvoiceNoneZ_clone(this.ptr);
59                 Result_SignedRawInvoiceNoneZ ret_hu_conv = Result_SignedRawInvoiceNoneZ.constr_from_ptr(ret);
60                 return ret_hu_conv;
61         }
62
63 }