forked from mtusi2026/mtusi2026lab5
10 lines
431 B
C#
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);
|