Reply messages

This commit is contained in:
2025-08-07 14:52:39 +03:30
parent 33a6c5e55d
commit 608aae4d4e
4 changed files with 129 additions and 3 deletions
@@ -48,7 +48,9 @@ public class Message {
this.forwarded_from = forwarded_from;
}
// ✅ Short Constructor
// ✅ Short Constructors
//for normal messages
public Message(UUID messageId, UUID senderId, UUID receiverId, String receiverType,
String content, String messageType, LocalDateTime sendAt) {
this.message_id = messageId;
@@ -60,6 +62,24 @@ public class Message {
this.send_at = sendAt;
}
//for reply messages
public Message(UUID messageId, UUID senderId, String receiverType, UUID receiverId,
String content, String messageType, LocalDateTime sendAt, String status,
UUID replyToId) {
this.message_id = messageId;
this.sender_id = senderId;
this.receiver_type = receiverType;
this.receiver_id = receiverId;
this.content = content;
this.message_type = messageType;
this.send_at = sendAt;
this.status = status;
this.reply_to_id = replyToId;
this.is_edited = false;
this.is_deleted_globally = false;
}
public Message(UUID messageId, UUID senderId, String receiverType, UUID receiverId,