[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / ThreeTuple_OnionMessageContentsDestinationBlindedPathZ.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_OnionMessageContentsDestinationBlindedPathZ : CommonBase {
13         internal ThreeTuple_OnionMessageContentsDestinationBlindedPathZ(object _dummy, long ptr) : base(ptr) { }
14         ~ThreeTuple_OnionMessageContentsDestinationBlindedPathZ() {
15                 if (ptr != 0) { bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_free(ptr); }
16         }
17
18         /**
19          * 
20          */
21         public OnionMessageContents get_a() {
22                 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_a(this.ptr);
23                 GC.KeepAlive(this);
24                 if (ret >= 0 && ret <= 4096) { return null; }
25                 OnionMessageContents ret_hu_conv = new OnionMessageContents(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 Destination get_b() {
34                 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_b(this.ptr);
35                 GC.KeepAlive(this);
36                 if (ret >= 0 && ret <= 4096) { return null; }
37                 org.ldk.structs.Destination ret_hu_conv = org.ldk.structs.Destination.constr_from_ptr(ret);
38                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
39                 return ret_hu_conv;
40         }
41
42         /**
43          * 
44          */
45         public BlindedPath get_c() {
46                 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_get_c(this.ptr);
47                 GC.KeepAlive(this);
48                 if (ret >= 0 && ret <= 4096) { return null; }
49                 org.ldk.structs.BlindedPath ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPath(null, ret); }
50                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
51                 return ret_hu_conv;
52         }
53
54         internal long clone_ptr() {
55                 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone_ptr(this.ptr);
56                 GC.KeepAlive(this);
57                 return ret;
58         }
59
60         /**
61          * Creates a new tuple which has the same data as `orig`
62          * but with all dynamically-allocated buffers duplicated in new buffers.
63          */
64         public ThreeTuple_OnionMessageContentsDestinationBlindedPathZ clone() {
65                 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_clone(this.ptr);
66                 GC.KeepAlive(this);
67                 if (ret >= 0 && ret <= 4096) { return null; }
68                 ThreeTuple_OnionMessageContentsDestinationBlindedPathZ ret_hu_conv = new ThreeTuple_OnionMessageContentsDestinationBlindedPathZ(null, ret);
69                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
70                 return ret_hu_conv;
71         }
72
73         /**
74          * Creates a new C3Tuple_OnionMessageContentsDestinationBlindedPathZ from the contained elements.
75          */
76         public static ThreeTuple_OnionMessageContentsDestinationBlindedPathZ of(org.ldk.structs.OnionMessageContents a, org.ldk.structs.Destination b, org.ldk.structs.BlindedPath c) {
77                 long ret = bindings.C3Tuple_OnionMessageContentsDestinationBlindedPathZ_new(a.ptr, b.ptr, c == null ? 0 : c.ptr);
78                 GC.KeepAlive(a);
79                 GC.KeepAlive(b);
80                 GC.KeepAlive(c);
81                 if (ret >= 0 && ret <= 4096) { return null; }
82                 ThreeTuple_OnionMessageContentsDestinationBlindedPathZ ret_hu_conv = new ThreeTuple_OnionMessageContentsDestinationBlindedPathZ(null, ret);
83                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
84                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(a); };
85                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b); };
86                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(c); };
87                 return ret_hu_conv;
88         }
89
90 }
91 } } }