X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_DelayedPaymentOutputDescriptorDecodeErrorZ.ts;h=2a64ba037f018c39d496299775193f1f62ad6d53;hb=d4846238a5f4245ac3cee8dbf3f196ad964564d5;hp=90d5afddce5449674545e769e60a478d252245b7;hpb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;p=ldk-java diff --git a/ts/structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.ts b/ts/structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.ts index 90d5afdd..2a64ba03 100644 --- a/ts/structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.ts +++ b/ts/structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.ts @@ -9,7 +9,7 @@ public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ extends CommonBas } static Result_DelayedPaymentOutputDescriptorDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.LDKCResult_DelayedPaymentOutputDescriptorDecodeErrorZ_result_ok(ptr)) { + if (bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(ptr)) { return new Result_DelayedPaymentOutputDescriptorDecodeErrorZ_OK(null, ptr); } else { return new Result_DelayedPaymentOutputDescriptorDecodeErrorZ_Err(null, ptr); @@ -37,21 +37,29 @@ public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ extends CommonBas } } - public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ constructor__ok(DelayedPaymentOutputDescriptor o) { + public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ constructor_ok(DelayedPaymentOutputDescriptor o) { number ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1); Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); - ret_hu_conv.ptrs_to.add(o); return ret_hu_conv; } - public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ constructor__err(DecodeError e) { + public static Result_DelayedPaymentOutputDescriptorDecodeErrorZ constructor_err(DecodeError e) { number ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1); Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); - ret_hu_conv.ptrs_to.add(e); return ret_hu_conv; } - public Result_DelayedPaymentOutputDescriptorDecodeErrorZ _clone() { + public boolean is_ok() { + boolean ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_is_ok(this.ptr); + return ret; + } + + public number clone_ptr() { + number ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone_ptr(this.ptr); + return ret; + } + + public Result_DelayedPaymentOutputDescriptorDecodeErrorZ clone() { number ret = bindings.CResult_DelayedPaymentOutputDescriptorDecodeErrorZ_clone(this.ptr); Result_DelayedPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_DelayedPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv;