MediaAttachmentsTests init

This commit is contained in:
Artemy
2025-06-22 15:37:20 +07:00
parent 64a06c0d1c
commit 4956a175c5
4 changed files with 163 additions and 2 deletions
+12
View File
@@ -11,6 +11,18 @@ public class MediaAttachments
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