6 namespace org { namespace ldk { namespace structs {
12 public class ThreeTuple_OffersMessageDestinationBlindedPathZ : CommonBase {
13 internal ThreeTuple_OffersMessageDestinationBlindedPathZ(object _dummy, long ptr) : base(ptr) { }
14 ~ThreeTuple_OffersMessageDestinationBlindedPathZ() {
15 if (ptr != 0) { bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_free(ptr); }
21 public OffersMessage get_a() {
22 long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_get_a(this.ptr);
24 if (ret >= 0 && ret <= 4096) { return null; }
25 org.ldk.structs.OffersMessage ret_hu_conv = org.ldk.structs.OffersMessage.constr_from_ptr(ret);
26 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
33 public Destination get_b() {
34 long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_get_b(this.ptr);
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); };
45 public BlindedPath get_c() {
46 long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_get_c(this.ptr);
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); };
54 internal long clone_ptr() {
55 long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_clone_ptr(this.ptr);
61 * Creates a new tuple which has the same data as `orig`
62 * but with all dynamically-allocated buffers duplicated in new buffers.
64 public ThreeTuple_OffersMessageDestinationBlindedPathZ clone() {
65 long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_clone(this.ptr);
67 if (ret >= 0 && ret <= 4096) { return null; }
68 ThreeTuple_OffersMessageDestinationBlindedPathZ ret_hu_conv = new ThreeTuple_OffersMessageDestinationBlindedPathZ(null, ret);
69 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
74 * Creates a new C3Tuple_OffersMessageDestinationBlindedPathZ from the contained elements.
76 public static ThreeTuple_OffersMessageDestinationBlindedPathZ of(org.ldk.structs.OffersMessage a, org.ldk.structs.Destination b, org.ldk.structs.BlindedPath c) {
77 long ret = bindings.C3Tuple_OffersMessageDestinationBlindedPathZ_new(a.ptr, b.ptr, c.ptr);
81 if (ret >= 0 && ret <= 4096) { return null; }
82 ThreeTuple_OffersMessageDestinationBlindedPathZ ret_hu_conv = new ThreeTuple_OffersMessageDestinationBlindedPathZ(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); };