Files
forkmessager/backend/src/Modules/Conversations/Application/DTOs/ChatMessageDto.cs
Халимов Рустам c45f4db61c Заготовка опросов
2026-04-07 01:01:29 +03:00

36 lines
799 B
C#

using System;
using System.Collections.Generic;
namespace Knot.Modules.Conversations.Application.DTOs;
public record ChatMessageDto(
Guid Id,
Guid ChatId,
Guid SenderId,
string? Content,
string Type,
Guid? ReplyToId,
string? Quote,
Guid? StoryId,
string? StoryMediaUrl,
string? StoryMediaType,
bool IsEdited,
bool IsDeleted,
DateTime CreatedAt,
long SequenceId,
List<MediaDto> Media,
MessageSenderDto Sender,
List<ReactionDto> Reactions,
List<ReadByDto> ReadBy,
string? CallType = null,
string? CallStatus = null,
int? Duration = null,
List<PollOptionDto>? PollOptions = null,
bool? PollIsMultipleChoice = null,
bool? PollIsClosed = null
);
public record PollOptionDto(string Text, int VoteCount);