ЛР5: реализована асинхронная обработка изображений (оценка 3)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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
|
||||
) {}
|
||||
Reference in New Issue
Block a user