mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
25 lines
868 B
C#
25 lines
868 B
C#
namespace Govor.Core.Models;
|
|
|
|
public class Message
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid SenderId { get; set; }
|
|
public Guid RecipientId { get; set; } // or GroupId
|
|
public RecipientType RecipientType { get; set; }
|
|
public string EncryptedContent { get; set; } = string.Empty;
|
|
public DateTime SentAt { get; set; }
|
|
public bool IsEdited { get; set; } = false;
|
|
public DateTime? EditedAt { get; set; }
|
|
public List<MessageReaction> Reactions { get; set; } = new List<MessageReaction>();
|
|
public List<MediaAttachments> MediaAttachments { get; set; } = new List<MediaAttachments>();
|
|
public List<MessageView> MessageViews { get; set; } = new List<MessageView>();
|
|
|
|
public Guid? ReplyToMessageId { get; set; }
|
|
public Message? ReplyToMessage { get; set; } // navigation
|
|
}
|
|
|
|
public enum RecipientType
|
|
{
|
|
User,
|
|
Group
|
|
} |