diff --git a/app/api.ts b/app/api.ts index e7b1a62..f8abed9 100644 --- a/app/api.ts +++ b/app/api.ts @@ -20,6 +20,7 @@ const getReportData = (data: AxiosResponse): BlacklistItem[] => { value.griefer, value.toxic, value.useless, + value.smurf ); blacklistItems.push(blacklistItem); } diff --git a/app/classes/blacklistItem.ts b/app/classes/blacklistItem.ts index 1e438d3..1c7fcf8 100644 --- a/app/classes/blacklistItem.ts +++ b/app/classes/blacklistItem.ts @@ -2,13 +2,14 @@ export class BlacklistItem { link: string; nicknames: string[]; comments: string[]; - afk: boolean; - cheater: boolean; - griefer: boolean; - toxic: boolean; - useless: boolean; + afk: number; + cheater: number; + griefer: number; + toxic: number; + useless: number; + smurf: number; - constructor(link: string, nicknames: string[], comments: string[], afk: boolean, cheater: boolean, griefer: boolean, toxic: boolean, useless: boolean) { + constructor(link: string, nicknames: string[], comments: string[], afk: number, cheater: number, griefer: number, toxic: number, useless: number, smurf: number) { this.link = link; this.nicknames = nicknames; this.comments = comments; @@ -17,5 +18,6 @@ export class BlacklistItem { this.griefer = griefer; this.toxic = toxic; this.useless = useless; + this.smurf = smurf; } } \ No newline at end of file