Create structs and traits that are (a bit) more human-friendly!
[ldk-java] / src / main / java / org / ldk / structs / DirectionalChannelInfo.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
6 public class DirectionalChannelInfo extends CommonBase {
7         DirectionalChannelInfo(Object _dummy, long ptr) { super(ptr); }
8         @Override @SuppressWarnings("deprecation")
9         protected void finalize() throws Throwable {
10                 bindings.DirectionalChannelInfo_free(ptr); super.finalize();
11         }
12
13         public int get_last_update(DirectionalChannelInfo this_ptr) {
14                 int ret = bindings.DirectionalChannelInfo_get_last_update(this_ptr.ptr & ~1);
15                 this.ptrs_to.add(this_ptr);
16                 return ret;
17         }
18
19         public void set_last_update(DirectionalChannelInfo this_ptr, int val) {
20                 bindings.DirectionalChannelInfo_set_last_update(this_ptr.ptr & ~1, val);
21                 this.ptrs_to.add(this_ptr);
22         }
23
24         public boolean get_enabled(DirectionalChannelInfo this_ptr) {
25                 boolean ret = bindings.DirectionalChannelInfo_get_enabled(this_ptr.ptr & ~1);
26                 this.ptrs_to.add(this_ptr);
27                 return ret;
28         }
29
30         public void set_enabled(DirectionalChannelInfo this_ptr, boolean val) {
31                 bindings.DirectionalChannelInfo_set_enabled(this_ptr.ptr & ~1, val);
32                 this.ptrs_to.add(this_ptr);
33         }
34
35         public short get_cltv_expiry_delta(DirectionalChannelInfo this_ptr) {
36                 short ret = bindings.DirectionalChannelInfo_get_cltv_expiry_delta(this_ptr.ptr & ~1);
37                 this.ptrs_to.add(this_ptr);
38                 return ret;
39         }
40
41         public void set_cltv_expiry_delta(DirectionalChannelInfo this_ptr, short val) {
42                 bindings.DirectionalChannelInfo_set_cltv_expiry_delta(this_ptr.ptr & ~1, val);
43                 this.ptrs_to.add(this_ptr);
44         }
45
46         public long get_htlc_minimum_msat(DirectionalChannelInfo this_ptr) {
47                 long ret = bindings.DirectionalChannelInfo_get_htlc_minimum_msat(this_ptr.ptr & ~1);
48                 this.ptrs_to.add(this_ptr);
49                 return ret;
50         }
51
52         public void set_htlc_minimum_msat(DirectionalChannelInfo this_ptr, long val) {
53                 bindings.DirectionalChannelInfo_set_htlc_minimum_msat(this_ptr.ptr & ~1, val);
54                 this.ptrs_to.add(this_ptr);
55         }
56
57         public ChannelUpdate get_last_update_message(DirectionalChannelInfo this_ptr) {
58                 ChannelUpdate ret = new ChannelUpdate(null, bindings.DirectionalChannelInfo_get_last_update_message(this_ptr.ptr & ~1));
59                 this.ptrs_to.add(this_ptr);
60                 return ret;
61         }
62
63         public void set_last_update_message(DirectionalChannelInfo this_ptr, ChannelUpdate val) {
64                 bindings.DirectionalChannelInfo_set_last_update_message(this_ptr.ptr & ~1, val.ptr & ~1);
65                 this.ptrs_to.add(this_ptr);
66                 this.ptrs_to.add(val);
67         }
68
69         // Skipped DirectionalChannelInfo_write
70         // Skipped DirectionalChannelInfo_read
71 }