2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
5 public class Result_NoneChannelMonitorUpdateErrZ extends CommonBase {
6 private Result_NoneChannelMonitorUpdateErrZ(Object _dummy, long ptr) { super(ptr); }
7 protected void finalize() throws Throwable {
8 if (ptr != 0) { bindings.CResult_NoneChannelMonitorUpdateErrZ_free(ptr); } super.finalize();
11 static Result_NoneChannelMonitorUpdateErrZ constr_from_ptr(long ptr) {
12 if (bindings.LDKCResult_NoneChannelMonitorUpdateErrZ_result_ok(ptr)) {
13 return new Result_NoneChannelMonitorUpdateErrZ_OK(null, ptr);
15 return new Result_NoneChannelMonitorUpdateErrZ_Err(null, ptr);
18 public static final class Result_NoneChannelMonitorUpdateErrZ_OK extends Result_NoneChannelMonitorUpdateErrZ {
19 private Result_NoneChannelMonitorUpdateErrZ_OK(Object _dummy, long ptr) {
22 public Result_NoneChannelMonitorUpdateErrZ_OK() {
23 this(null, bindings.CResult_NoneChannelMonitorUpdateErrZ_ok());
27 public static final class Result_NoneChannelMonitorUpdateErrZ_Err extends Result_NoneChannelMonitorUpdateErrZ {
28 public final LDKChannelMonitorUpdateErr err;
29 private Result_NoneChannelMonitorUpdateErrZ_Err(Object _dummy, long ptr) {
31 this.err = bindings.LDKCResult_NoneChannelMonitorUpdateErrZ_get_err(ptr);
33 public Result_NoneChannelMonitorUpdateErrZ_Err(LDKChannelMonitorUpdateErr err) {
34 this(null, bindings.CResult_NoneChannelMonitorUpdateErrZ_err(err));