This commit is contained in:
dank074 2021-10-26 00:37:13 -05:00
parent 22425e9b60
commit 28316de30f
4 changed files with 14 additions and 11 deletions

View File

@ -3,7 +3,7 @@ import { ChatRecordData } from './ChatRecordData';
export class CfhChatlogData export class CfhChatlogData
{ {
private _callId: number; private _issueId: number;
private _callerUserId: number; private _callerUserId: number;
private _reportedUserId: number; private _reportedUserId: number;
private _chatRecordId: number; private _chatRecordId: number;
@ -11,16 +11,16 @@ export class CfhChatlogData
constructor(k:IMessageDataWrapper) constructor(k:IMessageDataWrapper)
{ {
this._callId = k.readInt(); this._issueId = k.readInt();
this._callerUserId = k.readInt(); this._callerUserId = k.readInt();
this._reportedUserId = k.readInt(); this._reportedUserId = k.readInt();
this._chatRecordId = k.readInt(); this._chatRecordId = k.readInt();
this._chatRecord = new ChatRecordData(k); this._chatRecord = new ChatRecordData(k);
} }
public get callId(): number public get issueId(): number
{ {
return this._callId; return this._issueId;
} }
public get callerUserId(): number public get callerUserId(): number

View File

@ -1,13 +1,16 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class CloseIssuesMessageComposer implements IMessageComposer<number[]> export class CloseIssuesMessageComposer implements IMessageComposer<number[]>
{ {
public static readonly RESOLUTION_USELESS = 1;
public static readonly RESOLUTION_ABUSIVE = 2;
public static readonly RESOLUTION_RESOLVED = 3;
private _data: number[]; 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() public getMessageArray()

View File

@ -4,9 +4,9 @@ export class PickIssuesMessageComposer implements IMessageComposer<any>
{ {
private _data: any; 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() public getMessageArray()

View File

@ -4,9 +4,9 @@ export class ReleaseIssuesMessageComposer implements IMessageComposer<number[]>
{ {
private _data: number[]; private _data: number[];
constructor(k: number[]) constructor(issueIds: number[])
{ {
this._data = [k.length, ...k]; this._data = [issueIds.length, ...issueIds];
} }
public getMessageArray() public getMessageArray()