Files
Govor/Govor.Contracts/Requests/SignalR/MessageRequest.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

17 lines
611 B
C#

using Govor.Domain.Models.Messages;
using System.ComponentModel.DataAnnotations;
namespace Govor.Contracts.Requests.SignalR;
public record MessageRequest
{
public Guid RecipientId { get; init; }
public RecipientType RecipientType { get; init; }
[Required]
[MaxLength(1_000_000, ErrorMessage = "EncryptedContent cannot exceed 1,000,000 characters.")]
public string EncryptedContent { get; init; } = string.Empty;
public Guid? ReplyToMessageId { get; set; }
public Guid? ForwardedFromMessageId { get; init; }
public List<MediaReference> MediaAttachments { get; set; } = new();
}