X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FDirectionalChannelInfo.ts;fp=ts%2Fstructs%2FDirectionalChannelInfo.ts;h=903e56ecf2d4cb64b25fffad37b6cf2d64099542;hb=246459dcbc3be28c38b4951140a5933f4b3aa024;hp=5866e91333e19ba91f17515091c8a821c153e807;hpb=b52dde859c138f9257499496749d1eb89f9f6f43;p=ldk-java diff --git a/ts/structs/DirectionalChannelInfo.ts b/ts/structs/DirectionalChannelInfo.ts index 5866e913..903e56ec 100644 --- a/ts/structs/DirectionalChannelInfo.ts +++ b/ts/structs/DirectionalChannelInfo.ts @@ -18,13 +18,6 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.DirectionalChannelInfo_free(this.ptr); } } - public DirectionalChannelInfo clone() { - number ret = bindings.DirectionalChannelInfo_clone(this.ptr); - const ret_hu_conv: DirectionalChannelInfo = new DirectionalChannelInfo(null, ret); - ret_hu_conv.ptrs_to.add(this); - return ret_hu_conv; - } - public number get_last_update() { number ret = bindings.DirectionalChannelInfo_get_last_update(this.ptr); return ret; @@ -85,15 +78,21 @@ import * as bindings from '../bindings' // TODO: figure out location this.ptrs_to.add(val); } + public DirectionalChannelInfo clone() { + number ret = bindings.DirectionalChannelInfo_clone(this.ptr); + const ret_hu_conv: DirectionalChannelInfo = new DirectionalChannelInfo(null, ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + public Uint8Array write() { Uint8Array ret = bindings.DirectionalChannelInfo_write(this.ptr); return ret; } - public static DirectionalChannelInfo constructor_read(Uint8Array ser) { + public static Result_DirectionalChannelInfoDecodeErrorZ constructor_read(Uint8Array ser) { number ret = bindings.DirectionalChannelInfo_read(ser); - const ret_hu_conv: DirectionalChannelInfo = new DirectionalChannelInfo(null, ret); - ret_hu_conv.ptrs_to.add(ret_hu_conv); + Result_DirectionalChannelInfoDecodeErrorZ ret_hu_conv = Result_DirectionalChannelInfoDecodeErrorZ.constr_from_ptr(ret); return ret_hu_conv; }