+ /** A MessageSendEvent of type SendStfu */
+ public class MessageSendEvent_SendStfu : MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public byte[] node_id;
+ /**
+ * The message which should be sent.
+ */
+ public Stfu msg;
+ internal MessageSendEvent_SendStfu(long ptr) : base(null, ptr) {
+ long node_id = bindings.LDKMessageSendEvent_SendStfu_get_node_id(ptr);
+ byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ long msg = bindings.LDKMessageSendEvent_SendStfu_get_msg(ptr);
+ org.ldk.structs.Stfu msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.Stfu(null, msg); }
+ if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); };
+ this.msg = msg_hu_conv;
+ }
+ }
+ /** A MessageSendEvent of type SendSplice */
+ public class MessageSendEvent_SendSplice : MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public byte[] node_id;
+ /**
+ * The message which should be sent.
+ */
+ public Splice msg;
+ internal MessageSendEvent_SendSplice(long ptr) : base(null, ptr) {
+ long node_id = bindings.LDKMessageSendEvent_SendSplice_get_node_id(ptr);
+ byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ long msg = bindings.LDKMessageSendEvent_SendSplice_get_msg(ptr);
+ org.ldk.structs.Splice msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.Splice(null, msg); }
+ if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); };
+ this.msg = msg_hu_conv;
+ }
+ }
+ /** A MessageSendEvent of type SendSpliceAck */
+ public class MessageSendEvent_SendSpliceAck : MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public byte[] node_id;
+ /**
+ * The message which should be sent.
+ */
+ public SpliceAck msg;
+ internal MessageSendEvent_SendSpliceAck(long ptr) : base(null, ptr) {
+ long node_id = bindings.LDKMessageSendEvent_SendSpliceAck_get_node_id(ptr);
+ byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ long msg = bindings.LDKMessageSendEvent_SendSpliceAck_get_msg(ptr);
+ org.ldk.structs.SpliceAck msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.SpliceAck(null, msg); }
+ if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); };
+ this.msg = msg_hu_conv;
+ }
+ }
+ /** A MessageSendEvent of type SendSpliceLocked */
+ public class MessageSendEvent_SendSpliceLocked : MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public byte[] node_id;
+ /**
+ * The message which should be sent.
+ */
+ public SpliceLocked msg;
+ internal MessageSendEvent_SendSpliceLocked(long ptr) : base(null, ptr) {
+ long node_id = bindings.LDKMessageSendEvent_SendSpliceLocked_get_node_id(ptr);
+ byte[] node_id_conv = InternalUtils.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ long msg = bindings.LDKMessageSendEvent_SendSpliceLocked_get_msg(ptr);
+ org.ldk.structs.SpliceLocked msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.SpliceLocked(null, msg); }
+ if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.AddLast(this); };
+ this.msg = msg_hu_conv;
+ }
+ }