Files
2026-08-05 21:15:15 +03:00

25 lines
693 B
C#

namespace Chat.Contracts.DTOs;
/// <summary>
/// Data Transfer Object for sending a message.
/// Used when a client wants to send a message to another user.
/// </summary>
public class SendMessageDto
{
/// <summary>
/// The ID of the user who will receive the message.
/// </summary>
public Guid ReceiverId { get; set; }
/// <summary>
/// The content/message text to be sent.
/// </summary>
public string Content { get; set; } = string.Empty;
/// <summary>
/// Optional: The ID of the conversation this message belongs to.
/// If not provided, a new conversation may be created.
/// </summary>
public Guid? ConversationId { get; set; }
}