[C#] Update auto-generated files
[ldk-java] / c_sharp / src / org / ldk / structs / TwoTuple_BlindedPayInfoBlindedPathZ.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 TwoTuple_BlindedPayInfoBlindedPathZ : CommonBase {
13         internal TwoTuple_BlindedPayInfoBlindedPathZ(object _dummy, long ptr) : base(ptr) { }
14         ~TwoTuple_BlindedPayInfoBlindedPathZ() {
15                 if (ptr != 0) { bindings.C2Tuple_BlindedPayInfoBlindedPathZ_free(ptr); }
16         }
17
18         /**
19          * 
20          */
21         public BlindedPayInfo get_a() {
22                 long ret = bindings.C2Tuple_BlindedPayInfoBlindedPathZ_get_a(this.ptr);
23                 GC.KeepAlive(this);
24                 if (ret >= 0 && ret <= 4096) { return null; }
25                 org.ldk.structs.BlindedPayInfo ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPayInfo(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 BlindedPath get_b() {
34                 long ret = bindings.C2Tuple_BlindedPayInfoBlindedPathZ_get_b(this.ptr);
35                 GC.KeepAlive(this);
36                 if (ret >= 0 && ret <= 4096) { return null; }
37                 org.ldk.structs.BlindedPath ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BlindedPath(null, ret); }
38                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
39                 return ret_hu_conv;
40         }
41
42         internal long clone_ptr() {
43                 long ret = bindings.C2Tuple_BlindedPayInfoBlindedPathZ_clone_ptr(this.ptr);
44                 GC.KeepAlive(this);
45                 return ret;
46         }
47
48         /**
49          * Creates a new tuple which has the same data as `orig`
50          * but with all dynamically-allocated buffers duplicated in new buffers.
51          */
52         public TwoTuple_BlindedPayInfoBlindedPathZ clone() {
53                 long ret = bindings.C2Tuple_BlindedPayInfoBlindedPathZ_clone(this.ptr);
54                 GC.KeepAlive(this);
55                 if (ret >= 0 && ret <= 4096) { return null; }
56                 TwoTuple_BlindedPayInfoBlindedPathZ ret_hu_conv = new TwoTuple_BlindedPayInfoBlindedPathZ(null, ret);
57                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
58                 return ret_hu_conv;
59         }
60
61         /**
62          * Creates a new C2Tuple_BlindedPayInfoBlindedPathZ from the contained elements.
63          */
64         public static TwoTuple_BlindedPayInfoBlindedPathZ of(org.ldk.structs.BlindedPayInfo a, org.ldk.structs.BlindedPath b) {
65                 long ret = bindings.C2Tuple_BlindedPayInfoBlindedPathZ_new(a == null ? 0 : a.ptr, b == null ? 0 : b.ptr);
66                 GC.KeepAlive(a);
67                 GC.KeepAlive(b);
68                 if (ret >= 0 && ret <= 4096) { return null; }
69                 TwoTuple_BlindedPayInfoBlindedPathZ ret_hu_conv = new TwoTuple_BlindedPayInfoBlindedPathZ(null, ret);
70                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
71                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(a); };
72                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b); };
73                 return ret_hu_conv;
74         }
75
76 }
77 } } }