mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
35 lines
881 B
C#
35 lines
881 B
C#
namespace Govor.Core.Models;
|
|
|
|
public class MediaAttachments
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid MessageId { get; set; }
|
|
|
|
public MediaType Type { get; set; }
|
|
public string FilePath { get; set; } = string.Empty; // local path in filesystem
|
|
public string MimeType { get; set; } = string.Empty;
|
|
|
|
public string? EncryptedKey { get; set; }
|
|
public Message Message { get; set; } = null!;
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
if (obj is not MediaAttachments other) return false;
|
|
|
|
return Id == other.Id &&
|
|
MessageId == other.MessageId &&
|
|
EncryptedKey == other.EncryptedKey &&
|
|
Type == other.Type &&
|
|
FilePath == other.FilePath &&
|
|
MimeType == other.MimeType;
|
|
}
|
|
}
|
|
|
|
public enum MediaType
|
|
{
|
|
Image,
|
|
Video,
|
|
Audio,
|
|
File,
|
|
Voice
|
|
} |