Files
KfChatDotNet/KfChatDotNetBot/Models/SentMessageTrackerModel.cs

27 lines
1.0 KiB
C#

namespace KfChatDotNetBot.Models;
public class SentMessageTrackerModel
{
// Unique GUID for each message
public required string Reference { get; set; }
public required string Message { get; set; }
public required SentMessageTrackerStatus Status { get; set; }
public int? ChatMessageId { get; set; }
// Timespan from when the message was sent until we saw it come back
public TimeSpan? Delay { get; set; }
public DateTimeOffset? SentAt { get; set; }
}
public enum SentMessageTrackerStatus
{
WaitingForResponse,
ResponseReceived,
// If the bot is blocked from sending the message, e.g. due to suppress chat messages being enabled
NotSending,
// Shouldn't happen normally, it's just set before the bot has made a decision on whether to send or not,
Unknown,
// Means the chat was disconnected when you attempted to send the message
ChatDisconnected,
// Was held in the replay buffer due to a disconnect, but there were too many messages ahead of it and so was culled
Lost
}