sharp-chat/SharpChat.Common/Messages/Storage/IMessageStorage.cs
2022-08-30 17:05:29 +02:00

12 lines
380 B
C#

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);
}
}