diff --git a/app/classes/blacklistItem.ts b/app/classes/blacklistItem.ts new file mode 100644 index 0000000..1e438d3 --- /dev/null +++ b/app/classes/blacklistItem.ts @@ -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; + } +} \ No newline at end of file diff --git a/app/classes/responseError.ts b/app/classes/responseError.ts new file mode 100644 index 0000000..7fcf5f6 --- /dev/null +++ b/app/classes/responseError.ts @@ -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; + }; +} \ No newline at end of file