X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FResult_HTLCOutputInCommitmentDecodeErrorZ.ts;fp=ts%2Fstructs%2FResult_HTLCOutputInCommitmentDecodeErrorZ.ts;h=0000000000000000000000000000000000000000;hb=dbac7c579e163870c759f7cd11b2b254ab0fdb10;hp=8bcc7e1283e74e06c4f0db05104e749ea2465adf;hpb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;p=ldk-java diff --git a/ts/structs/Result_HTLCOutputInCommitmentDecodeErrorZ.ts b/ts/structs/Result_HTLCOutputInCommitmentDecodeErrorZ.ts deleted file mode 100644 index 8bcc7e12..00000000 --- a/ts/structs/Result_HTLCOutputInCommitmentDecodeErrorZ.ts +++ /dev/null @@ -1,68 +0,0 @@ - -import CommonBase from './CommonBase'; -import * as bindings from '../bindings' // TODO: figure out location - -public class Result_HTLCOutputInCommitmentDecodeErrorZ extends CommonBase { - private Result_HTLCOutputInCommitmentDecodeErrorZ(Object _dummy, long ptr) { super(ptr); } - protected void finalize() throws Throwable { - if (ptr != 0) { bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_free(ptr); } super.finalize(); - } - - static Result_HTLCOutputInCommitmentDecodeErrorZ constr_from_ptr(long ptr) { - if (bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(ptr)) { - return new Result_HTLCOutputInCommitmentDecodeErrorZ_OK(null, ptr); - } else { - return new Result_HTLCOutputInCommitmentDecodeErrorZ_Err(null, ptr); - } - } - public static final class Result_HTLCOutputInCommitmentDecodeErrorZ_OK extends Result_HTLCOutputInCommitmentDecodeErrorZ { - public final HTLCOutputInCommitment res; - private Result_HTLCOutputInCommitmentDecodeErrorZ_OK(Object _dummy, long ptr) { - super(_dummy, ptr); - number res = bindings.LDKCResult_HTLCOutputInCommitmentDecodeErrorZ_get_ok(ptr); - const res_hu_conv: HTLCOutputInCommitment = new HTLCOutputInCommitment(null, res); - res_hu_conv.ptrs_to.add(this); - this.res = res_hu_conv; - } - } - - public static final class Result_HTLCOutputInCommitmentDecodeErrorZ_Err extends Result_HTLCOutputInCommitmentDecodeErrorZ { - public final DecodeError err; - private Result_HTLCOutputInCommitmentDecodeErrorZ_Err(Object _dummy, long ptr) { - super(_dummy, ptr); - number err = bindings.LDKCResult_HTLCOutputInCommitmentDecodeErrorZ_get_err(ptr); - const err_hu_conv: DecodeError = new DecodeError(null, err); - err_hu_conv.ptrs_to.add(this); - this.err = err_hu_conv; - } - } - - public static Result_HTLCOutputInCommitmentDecodeErrorZ constructor_ok(HTLCOutputInCommitment o) { - number ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_ok(o == null ? 0 : o.ptr & ~1); - Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret); - return ret_hu_conv; - } - - public static Result_HTLCOutputInCommitmentDecodeErrorZ constructor_err(DecodeError e) { - number ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_err(e == null ? 0 : e.ptr & ~1); - Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret); - return ret_hu_conv; - } - - public boolean is_ok() { - boolean ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_is_ok(this.ptr); - return ret; - } - - public number clone_ptr() { - number ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_clone_ptr(this.ptr); - return ret; - } - - public Result_HTLCOutputInCommitmentDecodeErrorZ clone() { - number ret = bindings.CResult_HTLCOutputInCommitmentDecodeErrorZ_clone(this.ptr); - Result_HTLCOutputInCommitmentDecodeErrorZ ret_hu_conv = Result_HTLCOutputInCommitmentDecodeErrorZ.constr_from_ptr(ret); - return ret_hu_conv; - } - -}