[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / TwoTuple_BestBlockOutputSweeperZ.cs
diff --git a/c_sharp/src/org/ldk/structs/TwoTuple_BestBlockOutputSweeperZ.cs b/c_sharp/src/org/ldk/structs/TwoTuple_BestBlockOutputSweeperZ.cs
new file mode 100644 (file)
index 0000000..4ddd8b9
--- /dev/null
@@ -0,0 +1,72 @@
+using org.ldk.impl;
+using org.ldk.enums;
+using org.ldk.util;
+using System;
+
+namespace org { namespace ldk { namespace structs {
+
+
+/**
+ * A Tuple
+ */
+public class TwoTuple_BestBlockOutputSweeperZ : CommonBase {
+       internal TwoTuple_BestBlockOutputSweeperZ(object _dummy, long ptr) : base(ptr) { }
+       ~TwoTuple_BestBlockOutputSweeperZ() {
+               if (ptr != 0) { bindings.C2Tuple_BestBlockOutputSweeperZ_free(ptr); }
+       }
+
+       /**
+        * 
+        */
+       public BestBlock get_a() {
+               long ret = bindings.C2Tuple_BestBlockOutputSweeperZ_get_a(this.ptr);
+               GC.KeepAlive(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               org.ldk.structs.BestBlock ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.BestBlock(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
+               return ret_hu_conv;
+       }
+
+       /**
+        * 
+        */
+       public OutputSweeper get_b() {
+               long ret = bindings.C2Tuple_BestBlockOutputSweeperZ_get_b(this.ptr);
+               GC.KeepAlive(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               org.ldk.structs.OutputSweeper ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.OutputSweeper(null, ret); }
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); };
+               return ret_hu_conv;
+       }
+
+       /**
+        * Creates a new C2Tuple_BestBlockOutputSweeperZ from the contained elements.
+        */
+       public static TwoTuple_BestBlockOutputSweeperZ of(org.ldk.structs.BestBlock a, BestBlock b_best_block, BroadcasterInterface b_broadcaster, FeeEstimator b_fee_estimator, Option_FilterZ b_chain_data_source, OutputSpender b_output_spender, ChangeDestinationSource b_change_destination_source, KVStore b_kv_store, Logger b_logger) {
+               long ret = bindings.C2Tuple_BestBlockOutputSweeperZ_new(a.ptr, bindings.OutputSweeper_new(b_best_block.ptr, b_broadcaster.ptr, b_fee_estimator.ptr, b_chain_data_source.ptr, b_output_spender.ptr, b_change_destination_source.ptr, b_kv_store.ptr, b_logger.ptr));
+               GC.KeepAlive(a);
+               GC.KeepAlive(b_best_block);
+               GC.KeepAlive(b_broadcaster);
+               GC.KeepAlive(b_fee_estimator);
+               GC.KeepAlive(b_chain_data_source);
+               GC.KeepAlive(b_output_spender);
+               GC.KeepAlive(b_change_destination_source);
+               GC.KeepAlive(b_kv_store);
+               GC.KeepAlive(b_logger);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               TwoTuple_BestBlockOutputSweeperZ ret_hu_conv = new TwoTuple_BestBlockOutputSweeperZ(null, ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(a); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_best_block); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_broadcaster); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_fee_estimator); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_chain_data_source); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_output_spender); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_change_destination_source); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_kv_store); };
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(b_logger); };
+               return ret_hu_conv;
+       }
+
+}
+} } }