X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_NoneSemanticErrorZ.ts;h=ec49cdb350ef2596d459ea5b2c0797464ea4a8e2;hb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;hp=b53c9621f95ad18fe35284af5ac20704b17ec6f6;hpb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;p=ldk-java diff --git a/ts/structs/Result_NoneSemanticErrorZ.ts b/ts/structs/Result_NoneSemanticErrorZ.ts index b53c9621..ec49cdb3 100644 --- a/ts/structs/Result_NoneSemanticErrorZ.ts +++ b/ts/structs/Result_NoneSemanticErrorZ.ts @@ -9,7 +9,7 @@ public class Result_NoneSemanticErrorZ extends CommonBase { } static Result_NoneSemanticErrorZ constr_from_ptr(long ptr) { - if (bindings.LDKCResult_NoneSemanticErrorZ_result_ok(ptr)) { + if (bindings.CResult_NoneSemanticErrorZ_is_ok(ptr)) { return new Result_NoneSemanticErrorZ_OK(null, ptr); } else { return new Result_NoneSemanticErrorZ_Err(null, ptr); @@ -29,19 +29,29 @@ public class Result_NoneSemanticErrorZ extends CommonBase { } } - public static Result_NoneSemanticErrorZ constructor__ok() { + public static Result_NoneSemanticErrorZ constructor_ok() { number ret = bindings.CResult_NoneSemanticErrorZ_ok(); Result_NoneSemanticErrorZ ret_hu_conv = Result_NoneSemanticErrorZ.constr_from_ptr(ret); return ret_hu_conv; } - public static Result_NoneSemanticErrorZ constructor__err(SemanticError e) { + public static Result_NoneSemanticErrorZ constructor_err(SemanticError e) { number ret = bindings.CResult_NoneSemanticErrorZ_err(e); Result_NoneSemanticErrorZ ret_hu_conv = Result_NoneSemanticErrorZ.constr_from_ptr(ret); return ret_hu_conv; } - public Result_NoneSemanticErrorZ _clone() { + public boolean is_ok() { + boolean ret = bindings.CResult_NoneSemanticErrorZ_is_ok(this.ptr); + return ret; + } + + public number clone_ptr() { + number ret = bindings.CResult_NoneSemanticErrorZ_clone_ptr(this.ptr); + return ret; + } + + public Result_NoneSemanticErrorZ clone() { number ret = bindings.CResult_NoneSemanticErrorZ_clone(this.ptr); Result_NoneSemanticErrorZ ret_hu_conv = Result_NoneSemanticErrorZ.constr_from_ptr(ret); return ret_hu_conv;