1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
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();
13 public int get_last_update(DirectionalChannelInfo this_ptr) {
14 int ret = bindings.DirectionalChannelInfo_get_last_update(this_ptr == null ? 0 : this_ptr.ptr & ~1);
15 this.ptrs_to.add(this_ptr);
19 public void set_last_update(DirectionalChannelInfo this_ptr, int val) {
20 bindings.DirectionalChannelInfo_set_last_update(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
21 this.ptrs_to.add(this_ptr);
24 public boolean get_enabled(DirectionalChannelInfo this_ptr) {
25 boolean ret = bindings.DirectionalChannelInfo_get_enabled(this_ptr == null ? 0 : this_ptr.ptr & ~1);
26 this.ptrs_to.add(this_ptr);
30 public void set_enabled(DirectionalChannelInfo this_ptr, boolean val) {
31 bindings.DirectionalChannelInfo_set_enabled(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
32 this.ptrs_to.add(this_ptr);
35 public short get_cltv_expiry_delta(DirectionalChannelInfo this_ptr) {
36 short ret = bindings.DirectionalChannelInfo_get_cltv_expiry_delta(this_ptr == null ? 0 : this_ptr.ptr & ~1);
37 this.ptrs_to.add(this_ptr);
41 public void set_cltv_expiry_delta(DirectionalChannelInfo this_ptr, short val) {
42 bindings.DirectionalChannelInfo_set_cltv_expiry_delta(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
43 this.ptrs_to.add(this_ptr);
46 public long get_htlc_minimum_msat(DirectionalChannelInfo this_ptr) {
47 long ret = bindings.DirectionalChannelInfo_get_htlc_minimum_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1);
48 this.ptrs_to.add(this_ptr);
52 public void set_htlc_minimum_msat(DirectionalChannelInfo this_ptr, long val) {
53 bindings.DirectionalChannelInfo_set_htlc_minimum_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
54 this.ptrs_to.add(this_ptr);
57 public ChannelUpdate get_last_update_message(DirectionalChannelInfo this_ptr) {
58 ChannelUpdate ret = new ChannelUpdate(null, bindings.DirectionalChannelInfo_get_last_update_message(this_ptr == null ? 0 : this_ptr.ptr & ~1));
59 this.ptrs_to.add(this_ptr);
63 public void set_last_update_message(DirectionalChannelInfo this_ptr, ChannelUpdate val) {
64 bindings.DirectionalChannelInfo_set_last_update_message(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
65 this.ptrs_to.add(this_ptr);
66 this.ptrs_to.add(val);
69 // Skipped DirectionalChannelInfo_write
70 public DirectionalChannelInfo(byte[] ser) {
71 super(bindings.DirectionalChannelInfo_read(ser));