feat(communication): housekeeping unban-user composer

HousekeepingUnbanUserComposer (OutgoingHeader 9103) carrying a single
userId int. Response side reuses HousekeepingActionResultEvent — no
new parser needed because the ack shape is action-agnostic.

`yarn compile:fast` clean.
This commit is contained in:
simoleo89
2026-05-24 10:56:11 +02:00
committed by simoleo89
parent 31598b8883
commit c9d8f32e62
4 changed files with 25 additions and 1 deletions
@@ -527,4 +527,5 @@ export class OutgoingHeader
public static HOUSEKEEPING_FIND_USER_BY_NAME = 9100;
public static HOUSEKEEPING_FIND_USER_BY_ID = 9101;
public static HOUSEKEEPING_BAN_USER = 9102;
public static HOUSEKEEPING_UNBAN_USER = 9103;
}
@@ -0,0 +1,21 @@
import { IMessageComposer } from '@nitrots/api';
export class HousekeepingUnbanUserComposer implements IMessageComposer<ConstructorParameters<typeof HousekeepingUnbanUserComposer>>
{
private _data: ConstructorParameters<typeof HousekeepingUnbanUserComposer>;
constructor(userId: number)
{
this._data = [userId];
}
public getMessageArray()
{
return this._data;
}
public dispose(): void
{
return;
}
}
@@ -1,3 +1,4 @@
export * from './HousekeepingBanUserComposer';
export * from './HousekeepingFindUserByIdComposer';
export * from './HousekeepingFindUserByNameComposer';
export * from './HousekeepingUnbanUserComposer';