From 28316de30f27e55ac1c049886f074e3a15cbf491 Mon Sep 17 00:00:00 2001 From: dank074 Date: Tue, 26 Oct 2021 00:37:13 -0500 Subject: [PATCH] changes --- .../messages/incoming/moderation/CfhChatlogData.ts | 8 ++++---- .../outgoing/moderation/CloseIssuesMessageComposer.ts | 9 ++++++--- .../outgoing/moderation/PickIssuesMessageComposer.ts | 4 ++-- .../outgoing/moderation/ReleaseIssuesMessageComposer.ts | 4 ++-- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/nitro/communication/messages/incoming/moderation/CfhChatlogData.ts b/src/nitro/communication/messages/incoming/moderation/CfhChatlogData.ts index e3e54692..b2c9d38e 100644 --- a/src/nitro/communication/messages/incoming/moderation/CfhChatlogData.ts +++ b/src/nitro/communication/messages/incoming/moderation/CfhChatlogData.ts @@ -3,7 +3,7 @@ import { ChatRecordData } from './ChatRecordData'; export class CfhChatlogData { - private _callId: number; + private _issueId: number; private _callerUserId: number; private _reportedUserId: number; private _chatRecordId: number; @@ -11,16 +11,16 @@ export class CfhChatlogData constructor(k:IMessageDataWrapper) { - this._callId = k.readInt(); + this._issueId = k.readInt(); this._callerUserId = k.readInt(); this._reportedUserId = k.readInt(); this._chatRecordId = k.readInt(); this._chatRecord = new ChatRecordData(k); } - public get callId(): number + public get issueId(): number { - return this._callId; + return this._issueId; } public get callerUserId(): number diff --git a/src/nitro/communication/messages/outgoing/moderation/CloseIssuesMessageComposer.ts b/src/nitro/communication/messages/outgoing/moderation/CloseIssuesMessageComposer.ts index c707dd56..d1261740 100644 --- a/src/nitro/communication/messages/outgoing/moderation/CloseIssuesMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/moderation/CloseIssuesMessageComposer.ts @@ -1,13 +1,16 @@ import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; - export class CloseIssuesMessageComposer implements IMessageComposer { + public static readonly RESOLUTION_USELESS = 1; + public static readonly RESOLUTION_ABUSIVE = 2; + public static readonly RESOLUTION_RESOLVED = 3; + private _data: number[]; - constructor(issueIds: number[], _arg_2: number) + constructor(issueIds: number[], resolutionType: number) { - this._data = [ _arg_2, issueIds.length, ...issueIds]; + this._data = [ resolutionType, issueIds.length, ...issueIds]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/moderation/PickIssuesMessageComposer.ts b/src/nitro/communication/messages/outgoing/moderation/PickIssuesMessageComposer.ts index b731b870..a05955e0 100644 --- a/src/nitro/communication/messages/outgoing/moderation/PickIssuesMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/moderation/PickIssuesMessageComposer.ts @@ -4,9 +4,9 @@ export class PickIssuesMessageComposer implements IMessageComposer { private _data: any; - constructor(k:number[], _arg_2:boolean, _arg_3:number, _arg_4:string) + constructor(issueIds:number[], retryEnabled:boolean, retryCount:number, message:string) { - this._data = [k.length, ...k, _arg_2, _arg_3, _arg_4]; + this._data = [issueIds.length, ...issueIds, retryEnabled, retryCount, message]; } public getMessageArray() diff --git a/src/nitro/communication/messages/outgoing/moderation/ReleaseIssuesMessageComposer.ts b/src/nitro/communication/messages/outgoing/moderation/ReleaseIssuesMessageComposer.ts index 272ef328..a6f3c92a 100644 --- a/src/nitro/communication/messages/outgoing/moderation/ReleaseIssuesMessageComposer.ts +++ b/src/nitro/communication/messages/outgoing/moderation/ReleaseIssuesMessageComposer.ts @@ -4,9 +4,9 @@ export class ReleaseIssuesMessageComposer implements IMessageComposer { private _data: number[]; - constructor(k: number[]) + constructor(issueIds: number[]) { - this._data = [k.length, ...k]; + this._data = [issueIds.length, ...issueIds]; } public getMessageArray()