sharp-chat/SharpChat/EventStorage/IEventStorage.cs

12 lines
461 B
C#

using System.Collections.Generic;
namespace SharpChat.EventStorage
{
public interface IEventStorage {
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);
}
}