mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
15 lines
549 B
C#
15 lines
549 B
C#
using Govor.Core.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(100_000, ErrorMessage = "EncryptedContent cannot exceed 100,000 characters.")]
|
|
public string EncryptedContent { get; init; } = string.Empty;
|
|
public Guid? ReplyToMessageId { get; set; }
|
|
public List<MediaReference> MediaAttachments { get; set; } = new();
|
|
} |