using KfChatDotNetWsClient.Models.Events;
namespace KfChatDotNetBot.Models;
public class BotCommandMessageModel
{
///
/// Author of the message
///
public required UserModel Author { get; set; }
///
/// Recipient of the message if this is a whisper
///
public UserModel? Recipient { get; set; }
///
/// Message rendered into HTML
///
public required string Message { get; set; }
///
/// Original message with BBCode intact (but HTML-encoded)
///
public required string MessageRaw { get; set; }
///
/// Date and time the message was sent
///
public required DateTimeOffset MessageDate { get; set; }
///
/// Original message with BBCode intact and HTML decoded
///
public required string MessageRawHtmlDecoded { get; set; }
///
/// Chat UUID reference to the message (null for whispers)
///
public string? MessageUuid { get; set; }
///
/// When the message was edited (null if never edited or a whisper)
///
public DateTimeOffset? MessageEditDate { get; set; }
///
/// Room ID where this message was received. (null if a whisper)
///
public int? RoomId { get; set; }
public required bool IsWhisper { get; set; }
}