sharp-chat/SharpChatCommon/Messages/MessageStorage.cs

20 lines
543 B
C#
Raw Normal View History

namespace SharpChat.Messages;
public interface MessageStorage {
Task LogMessage(
2025-04-27 22:31:35 +00:00
long id,
string type,
string channelName,
string senderId,
string senderName,
ColourInheritable senderColour,
int senderRank,
string senderNick,
UserPermissions senderPerms,
2025-04-27 18:45:32 +00:00
object? data = null
);
2025-04-27 22:31:35 +00:00
Task DeleteMessage(Message msg);
Task<Message?> GetMessage(long id);
Task<IEnumerable<Message>> GetMessages(string channelName, int amount = 20, int offset = 0);
}