mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2024-12-22 23:42:50 +01:00
26 lines
686 B
C#
26 lines
686 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using DHT.Server.Data;
|
|
using DHT.Server.Data.Filters;
|
|
|
|
namespace DHT.Server.Database {
|
|
public interface IDatabaseFile : IDisposable {
|
|
string Path { get; }
|
|
DatabaseStatistics Statistics { get; }
|
|
|
|
void AddServer(Data.Server server);
|
|
List<Data.Server> GetAllServers();
|
|
|
|
void AddChannel(Channel channel);
|
|
List<Channel> GetAllChannels();
|
|
|
|
void AddUsers(User[] users);
|
|
List<User> GetAllUsers();
|
|
|
|
void AddMessages(Message[] messages);
|
|
int CountMessages(MessageFilter? filter = null);
|
|
List<Message> GetMessages(MessageFilter? filter = null);
|
|
void RemoveMessages(MessageFilter filter, MessageFilterRemovalMode mode);
|
|
}
|
|
}
|