X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_PaymentSecretAPIErrorZ.ts;h=906f575b5c7e5b19b35a1c8349da40e51bbe7ea2;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=4a9306f766e89b083b2604b8cb1fc7c158b3f48a;hpb=b0c50b891cbca28d3bd1d86276c132ff5221d8e4;p=ldk-java diff --git a/ts/structs/Result_PaymentSecretAPIErrorZ.ts b/ts/structs/Result_PaymentSecretAPIErrorZ.ts index 4a9306f7..906f575b 100644 --- a/ts/structs/Result_PaymentSecretAPIErrorZ.ts +++ b/ts/structs/Result_PaymentSecretAPIErrorZ.ts @@ -9,7 +9,7 @@ public class Result_PaymentSecretAPIErrorZ extends CommonBase { } static Result_PaymentSecretAPIErrorZ constr_from_ptr(long ptr) { - if (bindings.LDKCResult_PaymentSecretAPIErrorZ_result_ok(ptr)) { + if (bindings.CResult_PaymentSecretAPIErrorZ_is_ok(ptr)) { return new Result_PaymentSecretAPIErrorZ_OK(null, ptr); } else { return new Result_PaymentSecretAPIErrorZ_Err(null, ptr); @@ -34,19 +34,29 @@ public class Result_PaymentSecretAPIErrorZ extends CommonBase { } } - public static Result_PaymentSecretAPIErrorZ constructor__ok(Uint8Array o) { - number ret = bindings.CResult_PaymentSecretAPIErrorZ_ok(o); + public static Result_PaymentSecretAPIErrorZ constructor_ok(Uint8Array o) { + number ret = bindings.CResult_PaymentSecretAPIErrorZ_ok(InternalUtils.check_arr_len(o, 32)); Result_PaymentSecretAPIErrorZ ret_hu_conv = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret); return ret_hu_conv; } - public static Result_PaymentSecretAPIErrorZ constructor__err(APIError e) { + public static Result_PaymentSecretAPIErrorZ constructor_err(APIError e) { number ret = bindings.CResult_PaymentSecretAPIErrorZ_err(e.ptr); Result_PaymentSecretAPIErrorZ ret_hu_conv = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret); return ret_hu_conv; } - public Result_PaymentSecretAPIErrorZ _clone() { + public boolean is_ok() { + boolean ret = bindings.CResult_PaymentSecretAPIErrorZ_is_ok(this.ptr); + return ret; + } + + public number clone_ptr() { + number ret = bindings.CResult_PaymentSecretAPIErrorZ_clone_ptr(this.ptr); + return ret; + } + + public Result_PaymentSecretAPIErrorZ clone() { number ret = bindings.CResult_PaymentSecretAPIErrorZ_clone(this.ptr); Result_PaymentSecretAPIErrorZ ret_hu_conv = Result_PaymentSecretAPIErrorZ.constr_from_ptr(ret); return ret_hu_conv;