Skip methods we can't use anyway
[ldk-java] / src / main / java / org / ldk / structs / RouteHop.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
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();
11         }
12
13         public RouteHop(RouteHop orig) {
14                 super(bindings.RouteHop_clone(orig == null ? 0 : orig.ptr & ~1));
15                 this.ptrs_to.add(orig);
16         }
17
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);
21                 return ret;
22         }
23
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);
27         }
28
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);
32                 return ret;
33         }
34
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);
39                 return ret;
40         }
41
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);
45         }
46
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);
50                 return ret;
51         }
52
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);
57                 return ret;
58         }
59
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);
63         }
64
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);
68                 return ret;
69         }
70
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);
74         }
75
76         // Skipped RouteHop_new
77 }