X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=ts%2Fstructs%2FResult_NoneChannelMonitorUpdateErrZ.mts;h=07782f1172a8080963a4b1892ae9f22f9d64fa6b;hp=c91c9836c004b6213f8d3ce4f34cc9f721dd3e75;hb=c629a01650402c8e2f9b9db8ced9ed63ce687727;hpb=d1d0121c000b713c10fd0bedd249eb8dda2e4db7 diff --git a/ts/structs/Result_NoneChannelMonitorUpdateErrZ.mts b/ts/structs/Result_NoneChannelMonitorUpdateErrZ.mts index c91c9836..07782f11 100644 --- a/ts/structs/Result_NoneChannelMonitorUpdateErrZ.mts +++ b/ts/structs/Result_NoneChannelMonitorUpdateErrZ.mts @@ -294,18 +294,27 @@ export class Result_NoneChannelMonitorUpdateErrZ extends CommonBase { return new Result_NoneChannelMonitorUpdateErrZ_Err(null, ptr); } } + /** + * Creates a new CResult_NoneChannelMonitorUpdateErrZ in the success state. + */ public static constructor_ok(): Result_NoneChannelMonitorUpdateErrZ { const ret: number = bindings.CResult_NoneChannelMonitorUpdateErrZ_ok(); const ret_hu_conv: Result_NoneChannelMonitorUpdateErrZ = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret); return ret_hu_conv; } + /** + * Creates a new CResult_NoneChannelMonitorUpdateErrZ in the error state. + */ public static constructor_err(e: ChannelMonitorUpdateErr): Result_NoneChannelMonitorUpdateErrZ { const ret: number = bindings.CResult_NoneChannelMonitorUpdateErrZ_err(e); const ret_hu_conv: Result_NoneChannelMonitorUpdateErrZ = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret); return ret_hu_conv; } + /** + * Checks if the given object is currently in the success state + */ public is_ok(): boolean { const ret: boolean = bindings.CResult_NoneChannelMonitorUpdateErrZ_is_ok(this.ptr); return ret; @@ -316,6 +325,10 @@ export class Result_NoneChannelMonitorUpdateErrZ extends CommonBase { return ret; } + /** + * Creates a new CResult_NoneChannelMonitorUpdateErrZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ public clone(): Result_NoneChannelMonitorUpdateErrZ { const ret: number = bindings.CResult_NoneChannelMonitorUpdateErrZ_clone(this.ptr); const ret_hu_conv: Result_NoneChannelMonitorUpdateErrZ = Result_NoneChannelMonitorUpdateErrZ.constr_from_ptr(ret);