X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=inline;f=ts%2Fstructs%2FRetryAttempts.ts;fp=ts%2Fstructs%2FRetryAttempts.ts;h=0000000000000000000000000000000000000000;hb=dbac7c579e163870c759f7cd11b2b254ab0fdb10;hp=d844d6edf97e7a91baf7291f1ecbeb3560cfa594;hpb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;p=ldk-java diff --git a/ts/structs/RetryAttempts.ts b/ts/structs/RetryAttempts.ts deleted file mode 100644 index d844d6ed..00000000 --- a/ts/structs/RetryAttempts.ts +++ /dev/null @@ -1,60 +0,0 @@ - - -import CommonBase from './CommonBase'; -import * as bindings from '../bindings' // TODO: figure out location - - - - export default class RetryAttempts extends CommonBase { - constructor(_dummy: object, ptr: number) { - super(ptr); - } - - - protected finalize() { - super.finalize(); - - if (this.ptr != 0) { - bindings.RetryAttempts_free(this.ptr); - } - } - public number get_a() { - number ret = bindings.RetryAttempts_get_a(this.ptr); - return ret; - } - - public void set_a(number val) { - bindings.RetryAttempts_set_a(this.ptr, val); - } - - public static RetryAttempts constructor_new(number a_arg) { - number ret = bindings.RetryAttempts_new(a_arg); - const ret_hu_conv: RetryAttempts = new RetryAttempts(null, ret); - ret_hu_conv.ptrs_to.add(ret_hu_conv); - return ret_hu_conv; - } - - public number clone_ptr() { - number ret = bindings.RetryAttempts_clone_ptr(this.ptr); - return ret; - } - - public RetryAttempts clone() { - number ret = bindings.RetryAttempts_clone(this.ptr); - const ret_hu_conv: RetryAttempts = new RetryAttempts(null, ret); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - - public boolean eq(RetryAttempts b) { - boolean ret = bindings.RetryAttempts_eq(this.ptr, b == null ? 0 : b.ptr & ~1); - this.ptrs_to.add(b); - return ret; - } - - public number hash() { - number ret = bindings.RetryAttempts_hash(this.ptr); - return ret; - } - -}