6 namespace org { namespace ldk { namespace structs {
10 * A [`CandidateRouteHop::PublicHop`] entry.
12 public class PublicHopCandidate : CommonBase {
13 internal PublicHopCandidate(object _dummy, long ptr) : base(ptr) { }
14 ~PublicHopCandidate() {
15 if (ptr != 0) { bindings.PublicHopCandidate_free(ptr); }
19 * The short channel ID of the channel, i.e. the identifier by which we refer to this
22 public long get_short_channel_id() {
23 long ret = bindings.PublicHopCandidate_get_short_channel_id(this.ptr);
29 * The short channel ID of the channel, i.e. the identifier by which we refer to this
32 public void set_short_channel_id(long val) {
33 bindings.PublicHopCandidate_set_short_channel_id(this.ptr, val);
38 internal long clone_ptr() {
39 long ret = bindings.PublicHopCandidate_clone_ptr(this.ptr);
45 * Creates a copy of the PublicHopCandidate
47 public PublicHopCandidate clone() {
48 long ret = bindings.PublicHopCandidate_clone(this.ptr);
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); };