16 lines
498 B
Java
16 lines
498 B
Java
package ru.mtusi.messenger.dto;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
import java.time.OffsetDateTime;
|
|
import java.util.List;
|
|
import java.util.UUID;
|
|
|
|
public record Message(
|
|
@JsonProperty("id") UUID id,
|
|
@JsonProperty("chat_id") UUID chatId,
|
|
@JsonProperty("sender_id") UUID senderId,
|
|
@JsonProperty("text") String text,
|
|
@JsonProperty("attachment_ids") List<UUID> attachmentIds,
|
|
@JsonProperty("created_at") OffsetDateTime createdAt
|
|
) {} |