[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / PublicHopCandidate.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::PublicHop`] entry.
11  */
12 public class PublicHopCandidate : CommonBase {
13         internal PublicHopCandidate(object _dummy, long ptr) : base(ptr) { }
14         ~PublicHopCandidate() {
15                 if (ptr != 0) { bindings.PublicHopCandidate_free(ptr); }
16         }
17
18         /**
19          * The short channel ID of the channel, i.e. the identifier by which we refer to this
20          * channel.
21          */
22         public long get_short_channel_id() {
23                 long ret = bindings.PublicHopCandidate_get_short_channel_id(this.ptr);
24                 GC.KeepAlive(this);
25                 return ret;
26         }
27
28         /**
29          * The short channel ID of the channel, i.e. the identifier by which we refer to this
30          * channel.
31          */
32         public void set_short_channel_id(long val) {
33                 bindings.PublicHopCandidate_set_short_channel_id(this.ptr, val);
34                 GC.KeepAlive(this);
35                 GC.KeepAlive(val);
36         }
37
38         internal long clone_ptr() {
39                 long ret = bindings.PublicHopCandidate_clone_ptr(this.ptr);
40                 GC.KeepAlive(this);
41                 return ret;
42         }
43
44         /**
45          * Creates a copy of the PublicHopCandidate
46          */
47         public PublicHopCandidate clone() {
48                 long ret = bindings.PublicHopCandidate_clone(this.ptr);
49                 GC.KeepAlive(this);
50                 if (ret >= 0 && ret <= 4096) { return null; }
51                 org.ldk.structs.PublicHopCandidate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.PublicHopCandidate(null, ret); }
52                 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
53                 return ret_hu_conv;
54         }
55
56 }
57 } } }