1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 import java.util.Arrays;
8 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
9 public class ChannelDetails extends CommonBase {
10 ChannelDetails(Object _dummy, long ptr) { super(ptr); }
11 @Override @SuppressWarnings("deprecation")
12 protected void finalize() throws Throwable {
14 if (ptr != 0) { bindings.ChannelDetails_free(ptr); }
17 public static ChannelDetails constructor_clone(ChannelDetails orig) {
18 long ret = bindings.ChannelDetails_clone(orig == null ? 0 : orig.ptr & ~1);
19 ChannelDetails ret_hu_conv = new ChannelDetails(null, ret);
20 ret_hu_conv.ptrs_to.add(orig);
24 public byte[] get_channel_id() {
25 byte[] ret = bindings.ChannelDetails_get_channel_id(this.ptr);
29 public void set_channel_id(byte[] val) {
30 bindings.ChannelDetails_set_channel_id(this.ptr, val);
33 public byte[] get_remote_network_id() {
34 byte[] ret = bindings.ChannelDetails_get_remote_network_id(this.ptr);
38 public void set_remote_network_id(byte[] val) {
39 bindings.ChannelDetails_set_remote_network_id(this.ptr, val);
42 public InitFeatures get_counterparty_features() {
43 long ret = bindings.ChannelDetails_get_counterparty_features(this.ptr);
44 InitFeatures ret_hu_conv = new InitFeatures(null, ret);
48 // Skipped ChannelDetails_set_counterparty_features
49 public long get_channel_value_satoshis() {
50 long ret = bindings.ChannelDetails_get_channel_value_satoshis(this.ptr);
54 public void set_channel_value_satoshis(long val) {
55 bindings.ChannelDetails_set_channel_value_satoshis(this.ptr, val);
58 public long get_user_id() {
59 long ret = bindings.ChannelDetails_get_user_id(this.ptr);
63 public void set_user_id(long val) {
64 bindings.ChannelDetails_set_user_id(this.ptr, val);
67 public long get_outbound_capacity_msat() {
68 long ret = bindings.ChannelDetails_get_outbound_capacity_msat(this.ptr);
72 public void set_outbound_capacity_msat(long val) {
73 bindings.ChannelDetails_set_outbound_capacity_msat(this.ptr, val);
76 public long get_inbound_capacity_msat() {
77 long ret = bindings.ChannelDetails_get_inbound_capacity_msat(this.ptr);
81 public void set_inbound_capacity_msat(long val) {
82 bindings.ChannelDetails_set_inbound_capacity_msat(this.ptr, val);
85 public boolean get_is_live() {
86 boolean ret = bindings.ChannelDetails_get_is_live(this.ptr);
90 public void set_is_live(boolean val) {
91 bindings.ChannelDetails_set_is_live(this.ptr, val);