This commit is contained in:
EgorAnti
2026-11-18 20:33:27 +03:00
parent 276dbdad8a
commit 77a43fa9cf
114 changed files with 6271 additions and 0 deletions
@@ -0,0 +1,16 @@
package com.example.mtusi_messenger.model;
import java.time.Instant;
import java.util.List;
import java.util.UUID;
public record Message(UUID id,
UUID chatId,
UUID senderId,
String text,
Instant createdAt,
List<UUID> attachmentIds) {
public Message {
attachmentIds = attachmentIds == null ? List.of() : List.copyOf(attachmentIds);
}
}