mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-17 04:58:46 +00:00
632ac04b56
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.
17 lines
611 B
C#
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();
|
|
}
|