+/** A MessageSendEvent of type SendStfu */
+export class MessageSendEvent_SendStfu extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: Stfu;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendStfu_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendStfu_get_msg(ptr);
+ const msg_hu_conv: Stfu = new Stfu(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendSplice */
+export class MessageSendEvent_SendSplice extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: Splice;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendSplice_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendSplice_get_msg(ptr);
+ const msg_hu_conv: Splice = new Splice(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendSpliceAck */
+export class MessageSendEvent_SendSpliceAck extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: SpliceAck;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendSpliceAck_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendSpliceAck_get_msg(ptr);
+ const msg_hu_conv: SpliceAck = new SpliceAck(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}
+/** A MessageSendEvent of type SendSpliceLocked */
+export class MessageSendEvent_SendSpliceLocked extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public node_id: Uint8Array;
+ /**
+ * The message which should be sent.
+ */
+ public msg: SpliceLocked;
+ /* @internal */
+ public constructor(ptr: bigint) {
+ super(null, ptr);
+ const node_id: number = bindings.LDKMessageSendEvent_SendSpliceLocked_get_node_id(ptr);
+ const node_id_conv: Uint8Array = bindings.decodeUint8Array(node_id);
+ this.node_id = node_id_conv;
+ const msg: bigint = bindings.LDKMessageSendEvent_SendSpliceLocked_get_msg(ptr);
+ const msg_hu_conv: SpliceLocked = new SpliceLocked(null, msg);
+ CommonBase.add_ref_from(msg_hu_conv, this);
+ this.msg = msg_hu_conv;
+ }
+}