[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / FirstHopCandidate.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 [`CandidateRouteHop::FirstHop`] entry.
11  */
12 public class FirstHopCandidate : CommonBase {
13         internal FirstHopCandidate(object _dummy, long ptr) : base(ptr) { }
14         ~FirstHopCandidate() {
15                 if (ptr != 0) { bindings.FirstHopCandidate_free(ptr); }
16         }
17
18         internal long clone_ptr() {
19                 long ret = bindings.FirstHopCandidate_clone_ptr(this.ptr);
20                 GC.KeepAlive(this);
21                 return ret;
22         }
23
24         /**
25          * Creates a copy of the FirstHopCandidate
26          */
27         public FirstHopCandidate clone() {
28                 long ret = bindings.FirstHopCandidate_clone(this.ptr);
29                 GC.KeepAlive(this);
30                 if (ret >= 0 && ret <= 4096) { return null; }
31                 org.ldk.structs.FirstHopCandidate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.FirstHopCandidate(null, ret); }
32                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
33                 return ret_hu_conv;
34         }
35
36 }
37 } } }