+ /** A MonitorEvent of type HolderForceClosedWithInfo */
+ public class MonitorEvent_HolderForceClosedWithInfo : MonitorEvent {
+ /**
+ * The reason the channel was closed.
+ */
+ public ClosureReason reason;
+ /**
+ * The funding outpoint of the channel.
+ */
+ public OutPoint outpoint;
+ /**
+ * The channel ID of the channel.
+ */
+ public ChannelId channel_id;
+ internal MonitorEvent_HolderForceClosedWithInfo(long ptr) : base(null, ptr) {
+ long reason = bindings.LDKMonitorEvent_HolderForceClosedWithInfo_get_reason(ptr);
+ org.ldk.structs.ClosureReason reason_hu_conv = org.ldk.structs.ClosureReason.constr_from_ptr(reason);
+ if (reason_hu_conv != null) { reason_hu_conv.ptrs_to.AddLast(this); };
+ this.reason = reason_hu_conv;
+ long outpoint = bindings.LDKMonitorEvent_HolderForceClosedWithInfo_get_outpoint(ptr);
+ org.ldk.structs.OutPoint outpoint_hu_conv = null; if (outpoint < 0 || outpoint > 4096) { outpoint_hu_conv = new org.ldk.structs.OutPoint(null, outpoint); }
+ if (outpoint_hu_conv != null) { outpoint_hu_conv.ptrs_to.AddLast(this); };
+ this.outpoint = outpoint_hu_conv;
+ long channel_id = bindings.LDKMonitorEvent_HolderForceClosedWithInfo_get_channel_id(ptr);
+ org.ldk.structs.ChannelId channel_id_hu_conv = null; if (channel_id < 0 || channel_id > 4096) { channel_id_hu_conv = new org.ldk.structs.ChannelId(null, channel_id); }
+ if (channel_id_hu_conv != null) { channel_id_hu_conv.ptrs_to.AddLast(this); };
+ this.channel_id = channel_id_hu_conv;
+ }
+ }