Добавил классы для хранения информации
This commit is contained in:
parent
cda7cd10fe
commit
332b8f0c73
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue