mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-16 20:56:03 +00:00
33550d4fc9
Add signed, encrypted messages and attachments with per-session device keys, conversation key discovery, and server-side validation. Extend CI to publish immutable container images and deploy to a VPS, with setup and protocol documentation.
16 lines
556 B
C#
16 lines
556 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 List<MediaReference> MediaAttachments { get; set; } = new();
|
|
}
|