+ /**
+ * Used to indicate that a stfu message should be sent to the peer with the given node id.
+ */
+ public final static class SendStfu extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public final byte[] node_id;
+ /**
+ * The message which should be sent.
+ */
+ public final org.ldk.structs.Stfu msg;
+ private SendStfu(long ptr, bindings.LDKMessageSendEvent.SendStfu obj) {
+ super(null, ptr);
+ this.node_id = obj.node_id;
+ long msg = obj.msg;
+ 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.add(this); };
+ this.msg = msg_hu_conv;
+ }
+ }
+ /**
+ * Used to indicate that a splice message should be sent to the peer with the given node id.
+ */
+ public final static class SendSplice extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public final byte[] node_id;
+ /**
+ * The message which should be sent.
+ */
+ public final org.ldk.structs.Splice msg;
+ private SendSplice(long ptr, bindings.LDKMessageSendEvent.SendSplice obj) {
+ super(null, ptr);
+ this.node_id = obj.node_id;
+ long msg = obj.msg;
+ 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.add(this); };
+ this.msg = msg_hu_conv;
+ }
+ }
+ /**
+ * Used to indicate that a splice_ack message should be sent to the peer with the given node id.
+ */
+ public final static class SendSpliceAck extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public final byte[] node_id;
+ /**
+ * The message which should be sent.
+ */
+ public final org.ldk.structs.SpliceAck msg;
+ private SendSpliceAck(long ptr, bindings.LDKMessageSendEvent.SendSpliceAck obj) {
+ super(null, ptr);
+ this.node_id = obj.node_id;
+ long msg = obj.msg;
+ 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.add(this); };
+ this.msg = msg_hu_conv;
+ }
+ }
+ /**
+ * Used to indicate that a splice_locked message should be sent to the peer with the given node id.
+ */
+ public final static class SendSpliceLocked extends MessageSendEvent {
+ /**
+ * The node_id of the node which should receive this message
+ */
+ public final byte[] node_id;
+ /**
+ * The message which should be sent.
+ */
+ public final org.ldk.structs.SpliceLocked msg;
+ private SendSpliceLocked(long ptr, bindings.LDKMessageSendEvent.SendSpliceLocked obj) {
+ super(null, ptr);
+ this.node_id = obj.node_id;
+ long msg = obj.msg;
+ 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.add(this); };
+ this.msg = msg_hu_conv;
+ }
+ }