18 lines
489 B
C#
18 lines
489 B
C#
using Microsoft.AspNetCore.Http.HttpResults;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Messenger.Api.Models
|
|
{
|
|
public sealed class Message
|
|
{
|
|
public Guid Id { get; init; }
|
|
public Guid ChatId { get; init; }
|
|
public Guid SenderId { get; init; }
|
|
public string Text { get; init; } = String.Empty;
|
|
public DateTimeOffset CreatedAt { get; init; }
|
|
public Guid[] AttachmentIds { get; init; } = [];
|
|
}
|
|
}
|