X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FRouteHint.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FRouteHint.java;h=d2bc2616a08456a2426ea66498cff0bcb26d4070;hb=1b870a3ffab1c0024411e30102bc6d198300f095;hp=fc1e424979e5efe6f4243f5b02c985418250fd1e;hpb=246459dcbc3be28c38b4951140a5933f4b3aa024;p=ldk-java diff --git a/src/main/java/org/ldk/structs/RouteHint.java b/src/main/java/org/ldk/structs/RouteHint.java index fc1e4249..d2bc2616 100644 --- a/src/main/java/org/ldk/structs/RouteHint.java +++ b/src/main/java/org/ldk/structs/RouteHint.java @@ -5,6 +5,10 @@ import org.ldk.enums.*; import org.ldk.util.*; import java.util.Arrays; + +/** + * A channel descriptor which provides a last-hop route to get_route + */ @SuppressWarnings("unchecked") // We correctly assign various generic arrays public class RouteHint extends CommonBase { RouteHint(Object _dummy, long ptr) { super(ptr); } @@ -14,24 +18,39 @@ public class RouteHint extends CommonBase { if (ptr != 0) { bindings.RouteHint_free(ptr); } } + /** + * The node_id of the non-target end of the route + */ public byte[] get_src_node_id() { byte[] ret = bindings.RouteHint_get_src_node_id(this.ptr); return ret; } + /** + * The node_id of the non-target end of the route + */ public void set_src_node_id(byte[] val) { bindings.RouteHint_set_src_node_id(this.ptr, val); } + /** + * The short_channel_id of this channel + */ public long get_short_channel_id() { long ret = bindings.RouteHint_get_short_channel_id(this.ptr); return ret; } + /** + * The short_channel_id of this channel + */ public void set_short_channel_id(long val) { bindings.RouteHint_set_short_channel_id(this.ptr, val); } + /** + * The fees which must be paid to use this channel + */ public RoutingFees get_fees() { long ret = bindings.RouteHint_get_fees(this.ptr); RoutingFees ret_hu_conv = new RoutingFees(null, ret); @@ -39,20 +58,32 @@ public class RouteHint extends CommonBase { return ret_hu_conv; } + /** + * The fees which must be paid to use this channel + */ public void set_fees(RoutingFees val) { bindings.RouteHint_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1); this.ptrs_to.add(val); } + /** + * The difference in CLTV values between this node and the next node. + */ public short get_cltv_expiry_delta() { short ret = bindings.RouteHint_get_cltv_expiry_delta(this.ptr); return ret; } + /** + * The difference in CLTV values between this node and the next node. + */ public void set_cltv_expiry_delta(short val) { bindings.RouteHint_set_cltv_expiry_delta(this.ptr, val); } + /** + * Creates a copy of the RouteHint + */ public RouteHint clone() { long ret = bindings.RouteHint_clone(this.ptr); RouteHint ret_hu_conv = new RouteHint(null, ret);