Moderation | Change name variables

This commit is contained in:
object 2023-11-25 20:21:16 +01:00
parent 961540b045
commit 652c25df26
21 changed files with 106 additions and 106 deletions

View File

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

View File

@ -5,12 +5,12 @@ export class DefaultSanctionMessageComposer implements IMessageComposer<Construc
{
private _data: ConstructorParameters<typeof DefaultSanctionMessageComposer>;
constructor(k: number, _arg_2: number, _arg_3: string, _arg_4: number = -1)
constructor(userId: number, selectedTopic: number, message: string, issueState: number = -1)
{
this._data = [k, _arg_2, _arg_3];
if(_arg_4 != ModBanMessageComposer.NO_ISSUE_ID)
this._data = [userId, selectedTopic, message];
if(issueState != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(_arg_4);
this._data.push(issueState);
}
}

View File

@ -5,12 +5,12 @@ export class ModAlertMessageComposer implements IMessageComposer<ConstructorPara
{
private _data: ConstructorParameters<typeof ModAlertMessageComposer>;
constructor(k: number, arg2: string, arg3: number, arg4: number = -1)
constructor(userId: number, message: string, categoryId: number, issueState: number = -1)
{
this._data = [k, arg2, arg3];
if(arg4 != ModBanMessageComposer.NO_ISSUE_ID)
this._data = [userId, message, categoryId];
if(issueState != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg4);
this._data.push(issueState);
}
}

View File

@ -6,12 +6,12 @@ export class ModBanMessageComposer implements IMessageComposer<ConstructorParame
private _data: ConstructorParameters<typeof ModBanMessageComposer>;
constructor(k: number, arg2: string, arg3: number, arg4: number, arg5: boolean, arg6: number = -1)
constructor(userId: number, message: string, categoryId: number, selectedAction: number, isBan100Years: boolean, issueState: number = -1)
{
this._data = [k, arg2, arg3, arg4, arg5];
if(arg6 != ModBanMessageComposer.NO_ISSUE_ID)
this._data = [userId, message, categoryId, selectedAction, isBan100Years];
if(issueState != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg6);
this._data.push(issueState);
}
}

View File

@ -5,13 +5,13 @@ export class ModKickMessageComposer implements IMessageComposer<ConstructorParam
{
private _data: ConstructorParameters<typeof ModKickMessageComposer>;
constructor(k: number, arg2: string, arg3: number, arg4: number = -1)
constructor(userId: number, message: string, categoryId: number, issueState: number = -1)
{
this._data = [k, arg2, arg3];
this._data = [userId, message, categoryId];
if(arg4 != ModBanMessageComposer.NO_ISSUE_ID)
if(issueState != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg4);
this._data.push(issueState);
}
}

View File

@ -5,16 +5,16 @@ export class ModMessageMessageComposer implements IMessageComposer<any>
{
private _data: any[] = [];
constructor(k: number, arg2: string, arg3: number, arg4: number = -1)
constructor(userId: number, message: string, categoryId: number, issueState: number = -1)
{
this._data.push(k);
this._data.push(arg2);
this._data.push(userId);
this._data.push(message);
this._data.push('');
this._data.push('');
this._data.push(arg3);
if(arg4 != ModBanMessageComposer.NO_ISSUE_ID)
this._data.push(categoryId);
if(issueState != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg4);
this._data.push(issueState);
}
}

View File

@ -5,12 +5,12 @@ export class ModMuteMessageComposer implements IMessageComposer<ConstructorParam
{
private _data: ConstructorParameters<typeof ModMuteMessageComposer>;
constructor(k: number, arg2: string, arg3: number, arg4: number = -1)
constructor(userId: number, message: string, categoryId: number, issueState: number = -1)
{
this._data = [k, arg2, arg3];
if(arg4 != ModBanMessageComposer.NO_ISSUE_ID)
this._data = [userId, message, categoryId];
if(issueState != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg4);
this._data.push(issueState);
}
}

View File

@ -4,9 +4,9 @@ export class ModToolPreferencesComposer implements IMessageComposer<ConstructorP
{
private _data: ConstructorParameters<typeof ModToolPreferencesComposer>;
constructor(k: number, _arg_2: number, _arg_3: number, _arg_4: number)
constructor(lastWindowX: number, lastWindowY: number, lastWindowWidth: number, lastWindowHeight: number)
{
this._data = [k, _arg_2, _arg_3, _arg_4];
this._data = [lastWindowX, lastWindowY, lastWindowWidth, lastWindowHeight];
}
public getMessageArray()

View File

@ -4,9 +4,9 @@ export class ModToolSanctionComposer implements IMessageComposer<ConstructorPara
{
private _data: ConstructorParameters<typeof ModToolSanctionComposer>;
constructor(k: number, _arg_2: number, _arg_3: number)
constructor(issueId: number, userId: number, sanctionId: number)
{
this._data = [k, _arg_2, _arg_3];
this._data = [issueId, userId, sanctionId];
}
public getMessageArray()

View File

@ -5,13 +5,13 @@ export class ModTradingLockMessageComposer implements IMessageComposer<Construct
{
private _data: ConstructorParameters<typeof ModTradingLockMessageComposer>;
constructor(k: number, arg2: string, arg3: number, arg4: number, arg5: number = -1)
constructor(userId: number, message: string, numSeconds: number, categoryId: number, issueState: number = -1)
{
this._data = [k, arg2, arg3, arg4];
this._data = [userId, message, numSeconds, categoryId];
if(arg5 != ModBanMessageComposer.NO_ISSUE_ID)
if(issueState != ModBanMessageComposer.NO_ISSUE_ID)
{
this._data.push(arg5);
this._data.push(issueState);
}
}

View File

@ -9,11 +9,11 @@ export class ModeratorActionMessageComposer implements IMessageComposer<any>
private _data: any[] = [];
constructor(k: number, arg2: string, arg3: string)
constructor(actionState: number, message: string, value: string)
{
this._data.push(k);
this._data.push(arg2);
this._data.push(arg3);
this._data.push(actionState);
this._data.push(message);
this._data.push(value);
}
public getMessageArray()

View File

@ -9,13 +9,13 @@ export class CfhChatlogData
private _chatRecordId: number;
private _chatRecord: ChatRecordData;
constructor(k: IMessageDataWrapper)
constructor(wrapper: IMessageDataWrapper)
{
this._issueId = k.readInt();
this._callerUserId = k.readInt();
this._reportedUserId = k.readInt();
this._chatRecordId = k.readInt();
this._chatRecord = new ChatRecordData(k);
this._issueId = wrapper.readInt();
this._callerUserId = wrapper.readInt();
this._reportedUserId = wrapper.readInt();
this._chatRecordId = wrapper.readInt();
this._chatRecord = new ChatRecordData(wrapper);
}
public get issueId(): number

View File

@ -9,9 +9,9 @@ export class IssueDeletedMessageParser implements IMessageParser
return true;
}
public parse(k: IMessageDataWrapper): boolean
public parse(wrapper: IMessageDataWrapper): boolean
{
this._issueId = parseInt(k.readString());
this._issueId = parseInt(wrapper.readString());
return true;
}

View File

@ -18,30 +18,30 @@ export class IssueInfoMessageParser implements IMessageParser
return true;
}
public parse(k: IMessageDataWrapper): boolean
public parse(wrapper: IMessageDataWrapper): boolean
{
const issueId: number = k.readInt();
const state: number = k.readInt();
const categoryId: number = k.readInt();
const reportedCategoryId: number = k.readInt();
const issueAgeInMs: number = k.readInt();
const priority: number = k.readInt();
const groupingId: number = k.readInt();
const reporterUserId: number = k.readInt();
const reporterUsername: string = k.readString();
const reportedUserId: number = k.readInt();
const reportedUsername: string = k.readString();
const pickerUserId: number = k.readInt();
const pickerUsername: string = k.readString();
const message: string = k.readString();
const chatRecordId: number = k.readInt();
const issueId: number = wrapper.readInt();
const state: number = wrapper.readInt();
const categoryId: number = wrapper.readInt();
const reportedCategoryId: number = wrapper.readInt();
const issueAgeInMs: number = wrapper.readInt();
const priority: number = wrapper.readInt();
const groupingId: number = wrapper.readInt();
const reporterUserId: number = wrapper.readInt();
const reporterUsername: string = wrapper.readString();
const reportedUserId: number = wrapper.readInt();
const reportedUsername: string = wrapper.readString();
const pickerUserId: number = wrapper.readInt();
const pickerUsername: string = wrapper.readString();
const message: string = wrapper.readString();
const chatRecordId: number = wrapper.readInt();
const patternsCount: number = k.readInt();
const patternsCount: number = wrapper.readInt();
const patterns: PatternMatchData[] = [];
for(let i = 0; i < patternsCount; i++)
{
patterns.push(new PatternMatchData(k));
patterns.push(new PatternMatchData(wrapper));
}
this._issueData = new IssueMessageData(issueId, state, categoryId, reportedCategoryId, issueAgeInMs,

View File

@ -13,23 +13,23 @@ export class IssuePickFailedMessageParser implements IMessageParser
return true;
}
public parse(k: IMessageDataWrapper): boolean
public parse(wrapper: IMessageDataWrapper): boolean
{
this._issues = [];
const count = k.readInt();
const count = wrapper.readInt();
for(let i = 0; i < count; i++)
{
const _local_4 = k.readInt();
const _local_5 = k.readInt();
const _local_6 = k.readString();
const _local_7 = new IssueMessageData(_local_4, 0, 0, 0, 0, 0, 0, 0, null, 0, null, _local_5, _local_6, null, 0, []);
const issueId = wrapper.readInt();
const userId = wrapper.readInt();
const userName = wrapper.readString();
const _local_7 = new IssueMessageData(issueId, 0, 0, 0, 0, 0, 0, 0, null, 0, null, userId, userName, null, 0, []);
this._issues.push(_local_7);
}
this._retryEnabled = k.readBoolean();
this._retryCount = k.readInt();
this._retryEnabled = wrapper.readBoolean();
this._retryCount = wrapper.readInt();
return true;
}

View File

@ -8,22 +8,22 @@ export class ModRoomData implements IDisposable
private _tags: string[];
private _disposed: boolean;
constructor(k: IMessageDataWrapper)
constructor(wrapper: IMessageDataWrapper)
{
this._tags = [];
this._exists = k.readBoolean();
this._exists = wrapper.readBoolean();
if(!this.exists)
{
return;
}
this._name = k.readString();
this._desc = k.readString();
this._name = wrapper.readString();
this._desc = wrapper.readString();
const tagCount = k.readInt();
const tagCount = wrapper.readInt();
for(let i = 0; i < tagCount; i++)
{
this._tags.push(k.readString());
this._tags.push(wrapper.readString());
}
}

View File

@ -16,12 +16,12 @@ export class ModeratorToolPreferencesMessageParser implements IMessageParser
return true;
}
public parse(k: IMessageDataWrapper): boolean
public parse(wrapper: IMessageDataWrapper): boolean
{
this._windowX = k.readInt();
this._windowY = k.readInt();
this._windowWidth = k.readInt();
this._windowHeight = k.readInt();
this._windowX = wrapper.readInt();
this._windowY = wrapper.readInt();
this._windowWidth = wrapper.readInt();
this._windowHeight = wrapper.readInt();
return true;
}

View File

@ -7,11 +7,11 @@ export class PatternMatchData implements IDisposable
private _endIndex: number;
private _disposed: boolean = false;
constructor(k: IMessageDataWrapper)
constructor(wrapper: IMessageDataWrapper)
{
this._pattern = k.readString();
this._startIndex = k.readInt();
this._endIndex = k.readInt();
this._pattern = wrapper.readString();
this._startIndex = wrapper.readInt();
this._endIndex = wrapper.readInt();
}
public dispose(): void

View File

@ -11,14 +11,14 @@ export class RoomModerationData implements IDisposable
private _room: ModRoomData;
private _disposed: boolean;
constructor(k: IMessageDataWrapper)
constructor(wrapper: IMessageDataWrapper)
{
this._flatId = k.readInt();
this._userCount = k.readInt();
this._ownerInRoom = k.readBoolean();
this._ownerId = k.readInt();
this._ownerName = k.readString();
this._room = new ModRoomData(k);
this._flatId = wrapper.readInt();
this._userCount = wrapper.readInt();
this._ownerInRoom = wrapper.readBoolean();
this._ownerId = wrapper.readInt();
this._ownerName = wrapper.readString();
this._room = new ModRoomData(wrapper);
}
public get flatId(): number

View File

@ -7,12 +7,12 @@ export class RoomVisitData
private _enterHour: number;
private _enterMinute: number;
constructor(k: IMessageDataWrapper)
constructor(wrapper: IMessageDataWrapper)
{
this._roomId = k.readInt();
this._roomName = k.readString();
this._enterHour = k.readInt();
this._enterMinute = k.readInt();
this._roomId = wrapper.readInt();
this._roomName = wrapper.readString();
this._enterHour = wrapper.readInt();
this._enterMinute = wrapper.readInt();
}
public get roomId(): number

View File

@ -7,16 +7,16 @@ export class RoomVisitsData
private _userName: string;
private _rooms: RoomVisitData[];
constructor(k: IMessageDataWrapper)
constructor(wrapper: IMessageDataWrapper)
{
this._rooms = [];
this._userId = k.readInt();
this._userName = k.readString();
const _local_2 = k.readInt();
this._userId = wrapper.readInt();
this._userName = wrapper.readString();
const _local_2 = wrapper.readInt();
let _local_3 = 0;
while(_local_3 < _local_2)
{
this._rooms.push(new RoomVisitData(k));
this._rooms.push(new RoomVisitData(wrapper));
_local_3++;
}
}