Files
Govor/Govor.Contracts/Responses/SignalR/UserMessageResponse.cs
T
Artemy 66819a015a Refactor media attachments to use MediaFile entity
This commit introduces the MediaFile entity and updates the media attachments model, repositories, and related logic to reference MediaFile instead of storing file metadata directly in MediaAttachments. Controller, service, and SignalR request/response contracts are updated to support the new structure. Database configurations and validators are also adjusted accordingly. This refactor improves media management and normalization in the data model.
2025-07-06 21:09:12 +07:00

17 lines
615 B
C#

using Govor.Contracts.Requests.SignalR;
using Govor.Core.Models;
namespace Govor.Contracts.Responses.SignalR;
public record UserMessageResponse
{
public Guid MessageId { get; init; }
public Guid SenderId { get; init; }
public Guid RecipientId { get; init; }
public RecipientType RecipientType{get; init; }
public string EncryptedContent { get; init; } = string.Empty;
public Guid? ReplyToMessageId { get; init; }
public DateTime SentAt { get; init; }
public bool IsEdited { get; init; } = false;
public List<MediaFile> MediaAttachments { get; init; } = new List<MediaFile>();
}