Group Forums | Change name variables

This commit is contained in:
object 2023-11-26 17:09:04 +01:00
parent 961540b045
commit 2f73e109c1
12 changed files with 25 additions and 25 deletions

View File

@ -4,9 +4,9 @@ export class GetForumStatsMessageComposer implements IMessageComposer<Constructo
{
private _data: ConstructorParameters<typeof GetForumStatsMessageComposer>;
constructor(k: number)
constructor(groupId: number)
{
this._data = [k];
this._data = [groupId];
}
public getMessageArray()

View File

@ -4,9 +4,9 @@ export class GetForumsListMessageComposer implements IMessageComposer<Constructo
{
private _data: ConstructorParameters<typeof GetForumsListMessageComposer>;
constructor(k: number, _arg_2: number, _arg_3: number)
constructor(groupId: number, startIndex: number, pageSize: number)
{
this._data = [k, _arg_2, _arg_3];
this._data = [groupId, startIndex, pageSize];
}
public getMessageArray()

View File

@ -4,9 +4,9 @@ export class GetMessagesMessageComposer implements IMessageComposer<ConstructorP
{
private _data: ConstructorParameters<typeof GetMessagesMessageComposer>;
constructor(k: number, _arg_2: number, _arg_3: number, _arg_4: number)
constructor(groupId: number, threadId: number, startIndex: number, pageSize: number)
{
this._data = [k, _arg_2, _arg_3, _arg_4];
this._data = [groupId, threadId, startIndex, pageSize];
}
public getMessageArray()

View File

@ -4,9 +4,9 @@ export class GetThreadMessageComposer implements IMessageComposer<ConstructorPar
{
private _data: ConstructorParameters<typeof GetThreadMessageComposer>;
constructor(k: number, _arg_2: number)
constructor(mode: number, forumState: number)
{
this._data = [k, _arg_2];
this._data = [mode, forumState];
}
public getMessageArray()

View File

@ -4,9 +4,9 @@ export class GetThreadsMessageComposer implements IMessageComposer<ConstructorPa
{
private _data: ConstructorParameters<typeof GetThreadsMessageComposer>;
constructor(k: number, _arg_2: number, _arg_3: number)
constructor(mode: number, startIndex: number, pageSize: number)
{
this._data = [k, _arg_2, _arg_3];
this._data = [mode, startIndex, pageSize];
}
public getMessageArray()

View File

@ -4,9 +4,9 @@ export class ModerateMessageMessageComposer implements IMessageComposer<Construc
{
private _data: ConstructorParameters<typeof ModerateMessageMessageComposer>;
constructor(k: number, _arg_2: number, _arg_3: number, _arg_4: number)
constructor(groupId: number, threadId: number, messageId: number, forumState: number)
{
this._data = [k, _arg_2, _arg_3, _arg_4];
this._data = [groupId, threadId, messageId, forumState];
}
public getMessageArray()

View File

@ -4,9 +4,9 @@ export class ModerateThreadMessageComposer implements IMessageComposer<Construct
{
private _data: ConstructorParameters<typeof ModerateThreadMessageComposer>;
constructor(k: number, _arg_2: number, _arg_3: number)
constructor(groupId: number, threadId: number, forumState: number)
{
this._data = [k, _arg_2, _arg_3];
this._data = [groupId, threadId, forumState];
}
public getMessageArray()

View File

@ -4,9 +4,9 @@ export class PostMessageMessageComposer implements IMessageComposer<ConstructorP
{
private _data: ConstructorParameters<typeof PostMessageMessageComposer>;
constructor(k: number, _arg_2: number, _arg_3: string, _arg_4: string)
constructor(groupId: number, threadId: number, subject: string, message: string)
{
this._data = [k, _arg_2, _arg_3, _arg_4];
this._data = [groupId, threadId, subject, message];
}
public getMessageArray()

View File

@ -9,9 +9,9 @@ export class UpdateForumReadMarkerMessageComposer implements IMessageComposer<an
this._data = [data.length];
data.forEach(entry =>
{
this._data.push(entry.k);
this._data.push(entry._arg_2);
this._data.push(entry._arg_3);
this._data.push(entry.groupId);
this._data.push(entry.lastReadMessageId);
this._data.push(entry.isLastReadMessageId);
});
}
@ -28,6 +28,6 @@ export class UpdateForumReadMarkerMessageComposer implements IMessageComposer<an
export class UpdateForumReadMarkerEntry
{
constructor(public k: number, public _arg_2: number, public _arg_3: boolean)
constructor(public groupId: number, public lastReadMessageId: number, public isLastReadMessageId: boolean)
{ }
}

View File

@ -4,9 +4,9 @@ export class UpdateForumSettingsMessageComposer implements IMessageComposer<Cons
{
private _data: ConstructorParameters<typeof UpdateForumSettingsMessageComposer>;
constructor(k: number, _arg_2: number, _arg_3: number, _arg_4: number, _arg_5: number)
constructor(groupId: number, canRead: number, postMessages: number, postThreads: number, modForum: number)
{
this._data = [k, _arg_2, _arg_3, _arg_4, _arg_5];
this._data = [groupId, canRead, postMessages, postThreads, modForum];
}
public getMessageArray()

View File

@ -4,9 +4,9 @@ export class UpdateThreadMessageComposer implements IMessageComposer<Constructor
{
private _data: ConstructorParameters<typeof UpdateThreadMessageComposer>;
constructor(k: number, _arg_2: number, _arg_3: boolean, _arg_4: boolean)
constructor(groupId: number, threadId: number, isLocked: boolean, isPinned: boolean)
{
this._data = [k, _arg_2, _arg_4, _arg_3];
this._data = [groupId, threadId, isPinned, isLocked];
}
public getMessageArray()

View File

@ -86,7 +86,7 @@ export class ExtendedForumData extends ForumData
return this._canChangeSettings;
}
public get isStaf(): boolean
public get isStaff(): boolean
{
return this._isStaff;
}