sharp-chat/SharpChatCommon/EventStorage/IEventStorage.cs

23 lines
662 B
C#
Raw Normal View History

using System.Collections.Generic;
namespace SharpChat.EventStorage {
public interface IEventStorage {
void AddEvent(
2024-05-23 22:31:43 +00:00
long id,
string type,
2024-05-10 19:18:55 +00:00
string? channelName,
2024-05-23 22:31:43 +00:00
long senderId,
string? senderName,
Colour senderColour,
int senderRank,
string? senderNick,
UserPermissions senderPerms,
2024-05-24 00:23:31 +00:00
object? data = null
);
void RemoveEvent(StoredEventInfo evt);
2024-05-10 19:18:55 +00:00
StoredEventInfo? GetEvent(long seqId);
2024-05-24 00:23:31 +00:00
IEnumerable<StoredEventInfo> GetChannelEventLog(string channelName, int amount = 20, int startAt = 0);
}
}