]> git.bitcoin.ninja Git - ldk-java/blob - ts/structs/Result_NoneChannelMonitorUpdateErrZ.ts
Remove commented-out code
[ldk-java] / ts / structs / Result_NoneChannelMonitorUpdateErrZ.ts
1
2 import CommonBase from './CommonBase';
3 import * as bindings from '../bindings' // TODO: figure out location
4
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();
9         }
10
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);
14                 } else {
15                         return new Result_NoneChannelMonitorUpdateErrZ_Err(null, ptr);
16                 }
17         }
18         public static final class Result_NoneChannelMonitorUpdateErrZ_OK extends Result_NoneChannelMonitorUpdateErrZ {
19                 private Result_NoneChannelMonitorUpdateErrZ_OK(Object _dummy, long ptr) {
20                         super(_dummy, ptr);
21                 }
22                 public Result_NoneChannelMonitorUpdateErrZ_OK() {
23                         this(null, bindings.CResult_NoneChannelMonitorUpdateErrZ_ok());
24                 }
25         }
26
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) {
30                         super(_dummy, ptr);
31                         this.err = bindings.LDKCResult_NoneChannelMonitorUpdateErrZ_get_err(ptr);
32                 }
33                 public Result_NoneChannelMonitorUpdateErrZ_Err(LDKChannelMonitorUpdateErr err) {
34                         this(null, bindings.CResult_NoneChannelMonitorUpdateErrZ_err(err));
35                 }
36         }
37 }