X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_NoneAPIErrorZ.ts;fp=ts%2Fstructs%2FResult_NoneAPIErrorZ.ts;h=a90182d55fef377895638917d16240e7f2e0f26f;hb=c3ae2d6897e5a809459c8d9a72a4b3aa0052c8c8;hp=7bedbd606b994638ed3a8d4acd3b4070fbc937ea;hpb=a9a6f1747f8466e99abd5972bf675d310f6d7222;p=ldk-java diff --git a/ts/structs/Result_NoneAPIErrorZ.ts b/ts/structs/Result_NoneAPIErrorZ.ts index 7bedbd60..a90182d5 100644 --- a/ts/structs/Result_NoneAPIErrorZ.ts +++ b/ts/structs/Result_NoneAPIErrorZ.ts @@ -19,9 +19,6 @@ public class Result_NoneAPIErrorZ extends CommonBase { private Result_NoneAPIErrorZ_OK(Object _dummy, long ptr) { super(_dummy, ptr); } - public Result_NoneAPIErrorZ_OK() { - this(null, bindings.CResult_NoneAPIErrorZ_ok()); - } } public static final class Result_NoneAPIErrorZ_Err extends Result_NoneAPIErrorZ { @@ -33,8 +30,24 @@ public class Result_NoneAPIErrorZ extends CommonBase { err_hu_conv.ptrs_to.add(this); this.err = err_hu_conv; } - public Result_NoneAPIErrorZ_Err(APIError err) { - this(null, bindings.CResult_NoneAPIErrorZ_err(err.ptr)); - } } + + public static Result_NoneAPIErrorZ constructor__ok() { + number ret = bindings.CResult_NoneAPIErrorZ_ok(); + Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + + public static Result_NoneAPIErrorZ constructor__err(APIError e) { + number ret = bindings.CResult_NoneAPIErrorZ_err(e.ptr); + Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + + public Result_NoneAPIErrorZ _clone() { + number ret = bindings.CResult_NoneAPIErrorZ_clone(this.ptr); + Result_NoneAPIErrorZ ret_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + }