Counters-API/src/utils/Database.ts
2022-08-14 14:20:41 -06:00

17 lines
No EOL
629 B
TypeScript

export abstract class DatabaseHandler {
public abstract shutdown(): any;
public abstract channelExists(channel: string): Promise<boolean>;
public abstract counterExists(channel: string, counter: string): Promise<boolean>;
public abstract isUserIgnored(channel: string, user: string): Promise<boolean>;
public abstract getMessage(channel: string, counter: string): Promise<string>;
public abstract addChannel(channel: string): Promise<void>;
public abstract addCounter(channel: string, counter: string): Promise<void>;
public abstract changeCount(channel: string, counter: string, delta: number): Promise<number>;
}