2023-02-23 21:46:49 +00:00
|
|
|
|
using System.Collections.Generic;
|
2023-02-10 06:07:59 +00:00
|
|
|
|
|
2023-02-23 21:46:49 +00:00
|
|
|
|
namespace SharpChat.EventStorage
|
|
|
|
|
{
|
2023-02-10 06:07:59 +00:00
|
|
|
|
public interface IEventStorage {
|
2023-02-23 21:46:49 +00:00
|
|
|
|
long AddEvent(string type, ChatUser user, ChatChannel channel, object data = null, StoredEventFlags flags = StoredEventFlags.None);
|
|
|
|
|
void RemoveEvent(StoredEventInfo evt);
|
|
|
|
|
StoredEventInfo GetEvent(long seqId);
|
|
|
|
|
IEnumerable<StoredEventInfo> GetChannelEventLog(string channelName, int amount = 20, int offset = 0);
|
2023-02-10 06:07:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|