Files
Govor/Govor.Contracts/Responses/MessageResponse.cs
T
Artemy 632ac04b56 Add forwarding, friend controls, and benefits
Add message forwarding and reply lookup, friend removal and blocking endpoints, and database-backed Govor+ privileges with customizable profile tags. Include migrations, integration tests, and updated API and operations documentation.
2026-10-31 18:29:40 +07:00

25 lines
975 B
C#

using Govor.Domain.Models.Messages;
namespace Govor.Contracts.Responses;
public class MessageResponse
{
public Guid Id { get; set; }
public Guid SenderId { get; set; }
public Guid RecipientId { get; set; } // or GroupId
public RecipientType RecipientType { get; set; }
public string EncryptedContent { get; set; } = string.Empty;
public DateTime SentAt { get; set; }
public bool IsEdited { get; set; } = false;
public DateTime? EditedAt { get; set; }
public Guid? ReplyToMessageId { get; set; }
public Guid? ForwardedFromMessageId { get; set; }
public Guid? ForwardedFromUserId { get; set; }
public DateTime? ForwardedFromSentAt { get; set; }
public long ReactionsVersion { get; set; }
public List<MediaAttachmentResponse> MediaAttachments { get; set; } = new();
public List<MessageReactionResponse> Reactions { get; set; } = new();
public List<MessageViewResponse> MessageViews { get; set; } = new();
}