6 namespace org { namespace ldk { namespace structs {
12 public class TwoTuple_BlockHashChannelManagerZ : CommonBase {
13 internal TwoTuple_BlockHashChannelManagerZ(object _dummy, long ptr) : base(ptr) { }
14 ~TwoTuple_BlockHashChannelManagerZ() {
15 if (ptr != 0) { bindings.C2Tuple_BlockHashChannelManagerZ_free(ptr); }
21 public byte[] get_a() {
22 byte[] ret = bindings.C2Tuple_BlockHashChannelManagerZ_get_a(this.ptr);
30 public ChannelManager get_b() {
31 long ret = bindings.C2Tuple_BlockHashChannelManagerZ_get_b(this.ptr);
33 if (ret >= 0 && ret <= 4096) { return null; }
34 org.ldk.structs.ChannelManager ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelManager(null, ret); }
35 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
40 * Creates a new C2Tuple_BlockHashChannelManagerZ from the contained elements.
42 public static TwoTuple_BlockHashChannelManagerZ of(byte[] a, FeeEstimator b_fee_est, Watch b_chain_monitor, BroadcasterInterface b_tx_broadcaster, Router b_router, Logger b_logger, EntropySource b_entropy_source, NodeSigner b_node_signer, SignerProvider b_signer_provider, UserConfig b_config, ChainParameters b_params, int b_current_timestamp) {
43 long ret = bindings.C2Tuple_BlockHashChannelManagerZ_new(InternalUtils.check_arr_len(a, 32), bindings.ChannelManager_new(b_fee_est.ptr, b_chain_monitor.ptr, b_tx_broadcaster.ptr, b_router.ptr, b_logger.ptr, b_entropy_source.ptr, b_node_signer.ptr, b_signer_provider.ptr, b_config == null ? 0 : b_config.ptr, b_params == null ? 0 : b_params.ptr, b_current_timestamp));
45 GC.KeepAlive(b_fee_est);
46 GC.KeepAlive(b_chain_monitor);
47 GC.KeepAlive(b_tx_broadcaster);
48 GC.KeepAlive(b_router);
49 GC.KeepAlive(b_logger);
50 GC.KeepAlive(b_entropy_source);
51 GC.KeepAlive(b_node_signer);
52 GC.KeepAlive(b_signer_provider);
53 GC.KeepAlive(b_config);
54 GC.KeepAlive(b_params);
55 GC.KeepAlive(b_current_timestamp);
56 if (ret >= 0 && ret <= 4096) { return null; }
57 TwoTuple_BlockHashChannelManagerZ ret_hu_conv = new TwoTuple_BlockHashChannelManagerZ(null, ret);
58 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
59 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_fee_est); };
60 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_chain_monitor); };
61 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_tx_broadcaster); };
62 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_router); };
63 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_logger); };
64 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_entropy_source); };
65 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_node_signer); };
66 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_signer_provider); };
67 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_config); };
68 if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_params); };