Files
mtusi2026lab5-fork/scr/Messenger.Api/Models/Attachment.cs
T

10 lines
431 B
C#

namespace Messenger.Api.Models;
public sealed record Attachment(
Guid Id, Guid ChatId, Guid OwnerId, string Filename, string ContentType,
long SizeBytes, string Sha256, string Status, AttachmentVariant[] Variants,
string? ErrorCode, DateTimeOffset CreatedAt, DateTimeOffset UpdatedAt);
public sealed record AttachmentVariant(string Name, string ContentType, long SizeBytes,
int Width, int Height, string Sha256);