1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class RouteHop extends CommonBase {
7 RouteHop(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
10 bindings.RouteHop_free(ptr); super.finalize();
13 public RouteHop(RouteHop orig) {
14 super(bindings.RouteHop_clone(orig == null ? 0 : orig.ptr & ~1));
15 this.ptrs_to.add(orig);
18 public byte[] get_pubkey(RouteHop this_ptr) {
19 byte[] ret = bindings.RouteHop_get_pubkey(this_ptr == null ? 0 : this_ptr.ptr & ~1);
20 this.ptrs_to.add(this_ptr);
24 public void set_pubkey(RouteHop this_ptr, byte[] val) {
25 bindings.RouteHop_set_pubkey(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
26 this.ptrs_to.add(this_ptr);
29 public NodeFeatures get_node_features(RouteHop this_ptr) {
30 NodeFeatures ret = new NodeFeatures(null, bindings.RouteHop_get_node_features(this_ptr == null ? 0 : this_ptr.ptr & ~1));
31 this.ptrs_to.add(this_ptr);
35 // Skipped RouteHop_set_node_features
36 public long get_short_channel_id(RouteHop this_ptr) {
37 long ret = bindings.RouteHop_get_short_channel_id(this_ptr == null ? 0 : this_ptr.ptr & ~1);
38 this.ptrs_to.add(this_ptr);
42 public void set_short_channel_id(RouteHop this_ptr, long val) {
43 bindings.RouteHop_set_short_channel_id(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
44 this.ptrs_to.add(this_ptr);
47 public ChannelFeatures get_channel_features(RouteHop this_ptr) {
48 ChannelFeatures ret = new ChannelFeatures(null, bindings.RouteHop_get_channel_features(this_ptr == null ? 0 : this_ptr.ptr & ~1));
49 this.ptrs_to.add(this_ptr);
53 // Skipped RouteHop_set_channel_features
54 public long get_fee_msat(RouteHop this_ptr) {
55 long ret = bindings.RouteHop_get_fee_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1);
56 this.ptrs_to.add(this_ptr);
60 public void set_fee_msat(RouteHop this_ptr, long val) {
61 bindings.RouteHop_set_fee_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
62 this.ptrs_to.add(this_ptr);
65 public int get_cltv_expiry_delta(RouteHop this_ptr) {
66 int ret = bindings.RouteHop_get_cltv_expiry_delta(this_ptr == null ? 0 : this_ptr.ptr & ~1);
67 this.ptrs_to.add(this_ptr);
71 public void set_cltv_expiry_delta(RouteHop this_ptr, int val) {
72 bindings.RouteHop_set_cltv_expiry_delta(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
73 this.ptrs_to.add(this_ptr);
76 // Skipped RouteHop_new