12 lines
272 B
Java
12 lines
272 B
Java
package com.example.mtusi_messenger.model;
|
|
|
|
import java.time.Instant;
|
|
import java.util.List;
|
|
import java.util.UUID;
|
|
|
|
public record Chat(UUID id, String title, List<UUID> memberIds, Instant createdAt) {
|
|
public Chat {
|
|
memberIds = List.copyOf(memberIds);
|
|
}
|
|
}
|