mirror of
https://github.com/chylex/Discord-History-Tracker.git
synced 2025-05-13 13:06:33 +03:00
48 lines
972 B
C#
48 lines
972 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using DHT.Server.Data;
|
|
using DHT.Server.Data.Filters;
|
|
|
|
namespace DHT.Server.Database {
|
|
public class DummyDatabaseFile : IDatabaseFile {
|
|
public static DummyDatabaseFile Instance { get; } = new();
|
|
|
|
public string Path => "";
|
|
public DatabaseStatistics Statistics { get; } = new();
|
|
|
|
private DummyDatabaseFile() {}
|
|
|
|
public void AddServer(Data.Server server) {}
|
|
|
|
public List<Data.Server> GetAllServers() {
|
|
return new();
|
|
}
|
|
|
|
public void AddChannel(Channel channel) {}
|
|
|
|
public List<Channel> GetAllChannels() {
|
|
return new();
|
|
}
|
|
|
|
public void AddUsers(User[] users) {}
|
|
|
|
public List<User> GetAllUsers() {
|
|
return new();
|
|
}
|
|
|
|
public void AddMessages(Message[] messages) {}
|
|
|
|
public int CountMessages(MessageFilter? filter = null) {
|
|
return 0;
|
|
}
|
|
|
|
public List<Message> GetMessages(MessageFilter? filter = null) {
|
|
return new();
|
|
}
|
|
|
|
public void Dispose() {
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
}
|
|
}
|