]> git.bitcoin.ninja Git - ldk-java/blob - src/main/java/org/ldk/structs/ChannelDetails.java
Fix race in tests
[ldk-java] / src / main / java / org / ldk / structs / ChannelDetails.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5 import org.ldk.util.*;
6 import java.util.Arrays;
7
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 {
13                 super.finalize();
14                 if (ptr != 0) { bindings.ChannelDetails_free(ptr); }
15         }
16
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);
21                 return ret_hu_conv;
22         }
23
24         public byte[] get_channel_id() {
25                 byte[] ret = bindings.ChannelDetails_get_channel_id(this.ptr);
26                 return ret;
27         }
28
29         public void set_channel_id(byte[] val) {
30                 bindings.ChannelDetails_set_channel_id(this.ptr, val);
31         }
32
33         public byte[] get_remote_network_id() {
34                 byte[] ret = bindings.ChannelDetails_get_remote_network_id(this.ptr);
35                 return ret;
36         }
37
38         public void set_remote_network_id(byte[] val) {
39                 bindings.ChannelDetails_set_remote_network_id(this.ptr, val);
40         }
41
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);
45                 return ret_hu_conv;
46         }
47
48         // Skipped ChannelDetails_set_counterparty_features
49         public long get_channel_value_satoshis() {
50                 long ret = bindings.ChannelDetails_get_channel_value_satoshis(this.ptr);
51                 return ret;
52         }
53
54         public void set_channel_value_satoshis(long val) {
55                 bindings.ChannelDetails_set_channel_value_satoshis(this.ptr, val);
56         }
57
58         public long get_user_id() {
59                 long ret = bindings.ChannelDetails_get_user_id(this.ptr);
60                 return ret;
61         }
62
63         public void set_user_id(long val) {
64                 bindings.ChannelDetails_set_user_id(this.ptr, val);
65         }
66
67         public long get_outbound_capacity_msat() {
68                 long ret = bindings.ChannelDetails_get_outbound_capacity_msat(this.ptr);
69                 return ret;
70         }
71
72         public void set_outbound_capacity_msat(long val) {
73                 bindings.ChannelDetails_set_outbound_capacity_msat(this.ptr, val);
74         }
75
76         public long get_inbound_capacity_msat() {
77                 long ret = bindings.ChannelDetails_get_inbound_capacity_msat(this.ptr);
78                 return ret;
79         }
80
81         public void set_inbound_capacity_msat(long val) {
82                 bindings.ChannelDetails_set_inbound_capacity_msat(this.ptr, val);
83         }
84
85         public boolean get_is_live() {
86                 boolean ret = bindings.ChannelDetails_get_is_live(this.ptr);
87                 return ret;
88         }
89
90         public void set_is_live(boolean val) {
91                 bindings.ChannelDetails_set_is_live(this.ptr, val);
92         }
93
94 }