1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class ChannelManagerReadArgs extends CommonBase {
7 ChannelManagerReadArgs(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
11 bindings.ChannelManagerReadArgs_free(ptr);
14 public KeysInterface get_keys_manager(ChannelManagerReadArgs this_ptr) {
15 KeysInterface ret = new KeysInterface(null, bindings.ChannelManagerReadArgs_get_keys_manager(this_ptr == null ? 0 : this_ptr.ptr & ~1));
16 ret.ptrs_to.add(this);
17 this.ptrs_to.add(this_ptr);
21 public void set_keys_manager(ChannelManagerReadArgs this_ptr, KeysInterface val) {
22 bindings.ChannelManagerReadArgs_set_keys_manager(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr);
23 this.ptrs_to.add(this_ptr);
24 this.ptrs_to.add(val);
27 public FeeEstimator get_fee_estimator(ChannelManagerReadArgs this_ptr) {
28 FeeEstimator ret = new FeeEstimator(null, bindings.ChannelManagerReadArgs_get_fee_estimator(this_ptr == null ? 0 : this_ptr.ptr & ~1));
29 ret.ptrs_to.add(this);
30 this.ptrs_to.add(this_ptr);
34 public void set_fee_estimator(ChannelManagerReadArgs this_ptr, FeeEstimator val) {
35 bindings.ChannelManagerReadArgs_set_fee_estimator(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr);
36 this.ptrs_to.add(this_ptr);
37 this.ptrs_to.add(val);
40 public Watch get_chain_monitor(ChannelManagerReadArgs this_ptr) {
41 Watch ret = new Watch(null, bindings.ChannelManagerReadArgs_get_chain_monitor(this_ptr == null ? 0 : this_ptr.ptr & ~1));
42 ret.ptrs_to.add(this);
43 this.ptrs_to.add(this_ptr);
47 public void set_chain_monitor(ChannelManagerReadArgs this_ptr, Watch val) {
48 bindings.ChannelManagerReadArgs_set_chain_monitor(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr);
49 this.ptrs_to.add(this_ptr);
50 this.ptrs_to.add(val);
53 public BroadcasterInterface get_tx_broadcaster(ChannelManagerReadArgs this_ptr) {
54 BroadcasterInterface ret = new BroadcasterInterface(null, bindings.ChannelManagerReadArgs_get_tx_broadcaster(this_ptr == null ? 0 : this_ptr.ptr & ~1));
55 ret.ptrs_to.add(this);
56 this.ptrs_to.add(this_ptr);
60 public void set_tx_broadcaster(ChannelManagerReadArgs this_ptr, BroadcasterInterface val) {
61 bindings.ChannelManagerReadArgs_set_tx_broadcaster(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr);
62 this.ptrs_to.add(this_ptr);
63 this.ptrs_to.add(val);
66 public Logger get_logger(ChannelManagerReadArgs this_ptr) {
67 Logger ret = new Logger(null, bindings.ChannelManagerReadArgs_get_logger(this_ptr == null ? 0 : this_ptr.ptr & ~1));
68 ret.ptrs_to.add(this);
69 this.ptrs_to.add(this_ptr);
73 public void set_logger(ChannelManagerReadArgs this_ptr, Logger val) {
74 bindings.ChannelManagerReadArgs_set_logger(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr);
75 this.ptrs_to.add(this_ptr);
76 this.ptrs_to.add(val);
79 public UserConfig get_default_config(ChannelManagerReadArgs this_ptr) {
80 UserConfig ret = new UserConfig(null, bindings.ChannelManagerReadArgs_get_default_config(this_ptr == null ? 0 : this_ptr.ptr & ~1));
81 this.ptrs_to.add(this_ptr);
85 public void set_default_config(ChannelManagerReadArgs this_ptr, UserConfig val) {
86 bindings.ChannelManagerReadArgs_set_default_config(this_ptr == null ? 0 : this_ptr.ptr & ~1, val == null ? 0 : val.ptr & ~1);
87 this.ptrs_to.add(this_ptr);
88 this.ptrs_to.add(val);
91 // Skipped ChannelManagerReadArgs_new