Добавил классы для хранения информации

This commit is contained in:
Dhaverd 2026-05-08 00:55:38 +08:00
parent cda7cd10fe
commit 332b8f0c73
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,21 @@
export class BlacklistItem {
link: string;
nicknames: string[];
comments: string[];
afk: boolean;
cheater: boolean;
griefer: boolean;
toxic: boolean;
useless: boolean;
constructor(link: string, nicknames: string[], comments: string[], afk: boolean, cheater: boolean, griefer: boolean, toxic: boolean, useless: boolean) {
this.link = link;
this.nicknames = nicknames;
this.comments = comments;
this.afk = afk;
this.cheater = cheater;
this.griefer = griefer;
this.toxic = toxic;
this.useless = useless;
}
}

View File

@ -0,0 +1,11 @@
export class ResponseError {
code: string;
status: number;
message: string;
constructor(code: string, message: string, status: number) {
this.code = code;
this.status = status;
this.message = message;
};
}