the basis for group and private messages

This commit is contained in:
Artemy
2025-07-04 14:33:54 +07:00
parent fab3d6b67b
commit bdcfd32b11
20 changed files with 418 additions and 207 deletions
@@ -5,6 +5,7 @@ namespace Govor.Contracts.Requests.SignalR;
public record MessageRequest
{
public Guid RecipientId { get; init; }
public RecipientType RecipientType { get; init; }
public string EncryptedContent { get; init; } = string.Empty;
public Guid? ReplyToMessageId { get; set; }
public List<MediaReference> MediaAttachments { get; set; } = new();
@@ -1,12 +1,17 @@
using Govor.Contracts.Requests.SignalR;
using Govor.Core.Models;
namespace Govor.Contracts.Responses.SignalR;
public record UserMessageResponse
{
public Guid Id { get; init; }
public Guid MessageId { get; init; }
public Guid SenderId { get; init; }
public Guid RecipientId { get; init; }
public RecipientType RecipientType{get; init; }
public string EncryptedContent { get; init; } = string.Empty;
public Guid? ReplyToMessageId { get; set; }
public List<MediaReference> MediaReferences { get; init; } = new List<MediaReference>();
public Guid? ReplyToMessageId { get; init; }
public DateTime SentAt { get; init; }
public bool IsEdited { get; init; } = false;
public List<MediaReference> MediaAttachments { get; init; } = new List<MediaReference>();
}