[C#] Update auto-generated files
[ldk-java] / c_sharp / src / org / ldk / structs / ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ.cs
1 using org.ldk.impl;
2 using org.ldk.enums;
3 using org.ldk.util;
4 using System;
5
6 namespace org { namespace ldk { namespace structs {
7
8
9 /**
10  * A Tuple
11  */
12 public class ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ : CommonBase {
13         internal ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(object _dummy, long ptr) : base(ptr) { }
14         ~ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ() {
15                 if (ptr != 0) { bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_free(ptr); }
16         }
17
18         /**
19          * 
20          */
21         public OutPoint get_a() {
22                 long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_a(this.ptr);
23                 GC.KeepAlive(this);
24                 if (ret >= 0 && ret <= 4096) { return null; }
25                 org.ldk.structs.OutPoint ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutPoint(null, ret); }
26                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
27                 return ret_hu_conv;
28         }
29
30         /**
31          * 
32          */
33         public MonitorEvent[] get_b() {
34                 long[] ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_b(this.ptr);
35                 GC.KeepAlive(this);
36                 int ret_conv_14_len = ret.Length;
37                 MonitorEvent[] ret_conv_14_arr = new MonitorEvent[ret_conv_14_len];
38                 for (int o = 0; o < ret_conv_14_len; o++) {
39                         long ret_conv_14 = ret[o];
40                         org.ldk.structs.MonitorEvent ret_conv_14_hu_conv = org.ldk.structs.MonitorEvent.constr_from_ptr(ret_conv_14);
41                         if (ret_conv_14_hu_conv != null) { ret_conv_14_hu_conv.ptrs_to.AddLast(this); };
42                         ret_conv_14_arr[o] = ret_conv_14_hu_conv;
43                 }
44                 return ret_conv_14_arr;
45         }
46
47         /**
48          * 
49          */
50         public byte[] get_c() {
51                 byte[] ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_get_c(this.ptr);
52                 GC.KeepAlive(this);
53                 return ret;
54         }
55
56         internal long clone_ptr() {
57                 long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone_ptr(this.ptr);
58                 GC.KeepAlive(this);
59                 return ret;
60         }
61
62         /**
63          * Creates a new tuple which has the same data as `orig`
64          * but with all dynamically-allocated buffers duplicated in new buffers.
65          */
66         public ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ clone() {
67                 long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(this.ptr);
68                 GC.KeepAlive(this);
69                 if (ret >= 0 && ret <= 4096) { return null; }
70                 ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ ret_hu_conv = new ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(null, ret);
71                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
72                 return ret_hu_conv;
73         }
74
75         /**
76          * Creates a new C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ from the contained elements.
77          */
78         public static ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ of(org.ldk.structs.OutPoint a, MonitorEvent[] b, byte[] c) {
79                 long ret = bindings.C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_new(a == null ? 0 : a.ptr, b != null ? InternalUtils.mapArray(b, b_conv_14 => b_conv_14.ptr) : null, InternalUtils.check_arr_len(c, 33));
80                 GC.KeepAlive(a);
81                 GC.KeepAlive(b);
82                 GC.KeepAlive(c);
83                 if (ret >= 0 && ret <= 4096) { return null; }
84                 ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ ret_hu_conv = new ThreeTuple_OutPointCVec_MonitorEventZPublicKeyZ(null, ret);
85                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
86                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(a); };
87                 foreach (MonitorEvent b_conv_14 in b) { if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_conv_14); }; };
88                 return ret_hu_conv;
89         }
90
91 }
92 } } }