X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FExpiryTime.ts;h=47b3210745ea0f51f5d52969fa5e49b7dc3f2f7f;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=7ee0a413ae53dfdb3ba0eb6c2da7e9bd454c671d;hpb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;p=ldk-java diff --git a/ts/structs/ExpiryTime.ts b/ts/structs/ExpiryTime.ts index 7ee0a413..47b32107 100644 --- a/ts/structs/ExpiryTime.ts +++ b/ts/structs/ExpiryTime.ts @@ -18,9 +18,8 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ExpiryTime_free(this.ptr); } } - public boolean eq(ExpiryTime b) { - boolean ret = bindings.ExpiryTime_eq(this.ptr, b == null ? 0 : b.ptr & ~1); - this.ptrs_to.add(b); + public number clone_ptr() { + number ret = bindings.ExpiryTime_clone_ptr(this.ptr); return ret; } @@ -31,6 +30,17 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public number hash() { + number ret = bindings.ExpiryTime_hash(this.ptr); + return ret; + } + + public boolean eq(ExpiryTime b) { + boolean ret = bindings.ExpiryTime_eq(this.ptr, b == null ? 0 : b.ptr & ~1); + this.ptrs_to.add(b); + return ret; + } + public static Result_ExpiryTimeCreationErrorZ constructor_from_seconds(number seconds) { number ret = bindings.ExpiryTime_from_seconds(seconds); Result_ExpiryTimeCreationErrorZ ret_hu_conv = Result_ExpiryTimeCreationErrorZ.constr_from_ptr(ret);