X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_DelayedPaymentOutputDescriptorDecodeErrorZ.ts;h=2a64ba037f018c39d496299775193f1f62ad6d53;hb=6d094e745feaf94c1059555cd1c997965a34bc36;hp=dafd657559172a0986d0e2d9c82737e3ef6df20b;hpb=7aa095f42a570229656ab5fade9d966823b72e06;p=ldk-java diff --git a/ts/structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.ts b/ts/structs/Result_DelayedPaymentOutputDescriptorDecodeErrorZ.ts index dafd6575..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); @@ -40,17 +40,25 @@ public class Result_DelayedPaymentOutputDescriptorDecodeErrorZ extends CommonBas 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) { 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 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);