22 lines
662 B
C#
22 lines
662 B
C#
using System.Collections.Generic;
|
|
|
|
namespace SharpChat.EventStorage {
|
|
public interface IEventStorage {
|
|
void AddEvent(
|
|
long id,
|
|
string type,
|
|
string? channelName,
|
|
long senderId,
|
|
string? senderName,
|
|
Colour senderColour,
|
|
int senderRank,
|
|
string? senderNick,
|
|
UserPermissions senderPerms,
|
|
object? data = null
|
|
);
|
|
|
|
void RemoveEvent(StoredEventInfo evt);
|
|
StoredEventInfo? GetEvent(long seqId);
|
|
IEnumerable<StoredEventInfo> GetChannelEventLog(string channelName, int amount = 20, int startAt = 0);
|
|
}
|
|
}
|