X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_CVec_u8ZPeerHandleErrorZ.ts;fp=ts%2Fstructs%2FResult_CVec_u8ZPeerHandleErrorZ.ts;h=96c33d3a9fd12f1a10bca85606c568074ac23a8d;hb=c3ae2d6897e5a809459c8d9a72a4b3aa0052c8c8;hp=2b318343456cb7cb3c9adccdd05c0805a1fb715e;hpb=a9a6f1747f8466e99abd5972bf675d310f6d7222;p=ldk-java diff --git a/ts/structs/Result_CVec_u8ZPeerHandleErrorZ.ts b/ts/structs/Result_CVec_u8ZPeerHandleErrorZ.ts index 2b318343..96c33d3a 100644 --- a/ts/structs/Result_CVec_u8ZPeerHandleErrorZ.ts +++ b/ts/structs/Result_CVec_u8ZPeerHandleErrorZ.ts @@ -21,9 +21,6 @@ public class Result_CVec_u8ZPeerHandleErrorZ extends CommonBase { super(_dummy, ptr); this.res = bindings.LDKCResult_CVec_u8ZPeerHandleErrorZ_get_ok(ptr); } - public Result_CVec_u8ZPeerHandleErrorZ_OK(Uint8Array res) { - this(null, bindings.CResult_CVec_u8ZPeerHandleErrorZ_ok(res)); - } } public static final class Result_CVec_u8ZPeerHandleErrorZ_Err extends Result_CVec_u8ZPeerHandleErrorZ { @@ -35,9 +32,25 @@ public class Result_CVec_u8ZPeerHandleErrorZ extends CommonBase { err_hu_conv.ptrs_to.add(this); this.err = err_hu_conv; } - public Result_CVec_u8ZPeerHandleErrorZ_Err(PeerHandleError err) { - this(null, bindings.CResult_CVec_u8ZPeerHandleErrorZ_err(err == null ? 0 : err.ptr & ~1)); - this.ptrs_to.add(err); - } } + + public static Result_CVec_u8ZPeerHandleErrorZ constructor__ok(Uint8Array o) { + number ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_ok(o); + Result_CVec_u8ZPeerHandleErrorZ ret_hu_conv = Result_CVec_u8ZPeerHandleErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + + public static Result_CVec_u8ZPeerHandleErrorZ constructor__err(PeerHandleError e) { + number ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_err(e == null ? 0 : e.ptr & ~1); + Result_CVec_u8ZPeerHandleErrorZ ret_hu_conv = Result_CVec_u8ZPeerHandleErrorZ.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(e); + return ret_hu_conv; + } + + public Result_CVec_u8ZPeerHandleErrorZ _clone() { + number ret = bindings.CResult_CVec_u8ZPeerHandleErrorZ_clone(this.ptr); + Result_CVec_u8ZPeerHandleErrorZ ret_hu_conv = Result_CVec_u8ZPeerHandleErrorZ.constr_from_ptr(ret); + return ret_hu_conv; + } + }