X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=ts%2Fstructs%2FResult_InvoiceFeaturesDecodeErrorZ.ts;h=e86d913763b000cc8eed0161bb055fbfae481133;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=ac13a5ae64eb44ddbacf820bcbddf061417935e3;hpb=d9af3c7d5fbc87035335d96b855bb9f1000a31a5;p=ldk-java diff --git a/ts/structs/Result_InvoiceFeaturesDecodeErrorZ.ts b/ts/structs/Result_InvoiceFeaturesDecodeErrorZ.ts index ac13a5ae..e86d9137 100644 --- a/ts/structs/Result_InvoiceFeaturesDecodeErrorZ.ts +++ b/ts/structs/Result_InvoiceFeaturesDecodeErrorZ.ts @@ -9,7 +9,7 @@ public class Result_InvoiceFeaturesDecodeErrorZ extends CommonBase { } static Result_InvoiceFeaturesDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.LDKCResult_InvoiceFeaturesDecodeErrorZ_result_ok(ptr)) { + if (bindings.CResult_InvoiceFeaturesDecodeErrorZ_is_ok(ptr)) { return new Result_InvoiceFeaturesDecodeErrorZ_OK(null, ptr); } else { return new Result_InvoiceFeaturesDecodeErrorZ_Err(null, ptr); @@ -24,10 +24,6 @@ public class Result_InvoiceFeaturesDecodeErrorZ extends CommonBase { res_hu_conv.ptrs_to.add(this); this.res = res_hu_conv; } - public Result_InvoiceFeaturesDecodeErrorZ_OK(InvoiceFeatures res) { - this(null, bindings.CResult_InvoiceFeaturesDecodeErrorZ_ok(res == null ? 0 : res.ptr & ~1)); - this.ptrs_to.add(res); - } } public static final class Result_InvoiceFeaturesDecodeErrorZ_Err extends Result_InvoiceFeaturesDecodeErrorZ { @@ -39,9 +35,23 @@ public class Result_InvoiceFeaturesDecodeErrorZ extends CommonBase { err_hu_conv.ptrs_to.add(this); this.err = err_hu_conv; } - public Result_InvoiceFeaturesDecodeErrorZ_Err(DecodeError err) { - this(null, bindings.CResult_InvoiceFeaturesDecodeErrorZ_err(err == null ? 0 : err.ptr & ~1)); - this.ptrs_to.add(err); - } } + + public static Result_InvoiceFeaturesDecodeErrorZ constructor_ok(InvoiceFeatures o) { + number ret = bindings.CResult_InvoiceFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1); + Result_InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + + public static Result_InvoiceFeaturesDecodeErrorZ constructor_err(DecodeError e) { + number ret = bindings.CResult_InvoiceFeaturesDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1); + Result_InvoiceFeaturesDecodeErrorZ ret_hu_conv = Result_InvoiceFeaturesDecodeErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + + public boolean is_ok() { + boolean ret = bindings.CResult_InvoiceFeaturesDecodeErrorZ_is_ok(this.ptr); + return ret; + } + }