sharp-chat/SharpChat.Common/Messages/Storage/IMessageStorage.cs

12 lines
380 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
using SharpChat.Channels;
using SharpChat.Events;
using System;
using System.Collections.Generic;
namespace SharpChat.Messages.Storage {
public interface IMessageStorage : IEventHandler {
void GetMessage(long messageId, Action<IMessage> callback);
void GetMessages(IChannel channel, Action<IEnumerable<IMessage>> callback, int amount, int offset);
}
}