2022-08-30 15:00:58 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace SharpChat.Events {
|
|
|
|
|
[Flags]
|
|
|
|
|
public enum ChatMessageFlags {
|
|
|
|
|
None = 0,
|
|
|
|
|
Action = 1,
|
|
|
|
|
Broadcast = 1 << 1,
|
|
|
|
|
Log = 1 << 2,
|
|
|
|
|
Private = 1 << 3,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface IChatEvent {
|
|
|
|
|
DateTimeOffset DateTime { get; set; }
|
2023-02-17 21:47:44 +00:00
|
|
|
|
ChatUser Sender { get; set; }
|
2023-02-16 22:47:30 +00:00
|
|
|
|
string ChannelName { get; set; }
|
2022-08-30 15:00:58 +00:00
|
|
|
|
ChatMessageFlags Flags { get; set; }
|
|
|
|
|
long SequenceId { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface IChatMessage : IChatEvent {
|
|
|
|
|
string Text { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|