#28 - RentableSpaceRentOkMessageEvent added

This commit is contained in:
oobjectt 2022-12-25 20:52:15 +01:00
parent 26741b78a7
commit ca6423afd8
6 changed files with 48 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -414,4 +414,5 @@ export class IncomingHeader
public static SHOW_ENFORCE_ROOM_CATEGORY = 3896; public static SHOW_ENFORCE_ROOM_CATEGORY = 3896;
public static CUSTOM_USER_NOTIFICATION = 909; public static CUSTOM_USER_NOTIFICATION = 909;
public static NEW_USER_EXPERIENCE_GIFT_OFFER = 3575; public static NEW_USER_EXPERIENCE_GIFT_OFFER = 3575;
public static RENTABLE_SPACE_RENT_OK = 2046;
} }

View File

@ -0,0 +1,16 @@
import { IMessageEvent } from '../../../../../../api';
import { MessageEvent } from '../../../../../../events';
import { RentableSpaceRentOkMessageParser } from '../../../parser';
export class RentableSpaceRentOkMessageEvent extends MessageEvent implements IMessageEvent
{
constructor(callBack: Function)
{
super(callBack, RentableSpaceRentOkMessageParser);
}
public getParser(): RentableSpaceRentOkMessageParser
{
return this.parser as RentableSpaceRentOkMessageParser;
}
}

View File

@ -10,6 +10,7 @@ export * from './LoveLockFurniFinishedEvent';
export * from './LoveLockFurniFriendConfirmedEvent'; export * from './LoveLockFurniFriendConfirmedEvent';
export * from './LoveLockFurniStartEvent'; export * from './LoveLockFurniStartEvent';
export * from './OneWayDoorStatusMessageEvent'; export * from './OneWayDoorStatusMessageEvent';
export * from './RentableSpaceRentOkMessageEvent';
export * from './RequestSpamWallPostItMessageEvent'; export * from './RequestSpamWallPostItMessageEvent';
export * from './RoomDimmerPresetsMessageEvent'; export * from './RoomDimmerPresetsMessageEvent';
export * from './wall'; export * from './wall';

View File

@ -0,0 +1,25 @@
import { IMessageDataWrapper, IMessageParser } from '../../../../../../api';
export class RentableSpaceRentOkMessageParser implements IMessageParser
{
private _expiryTime: number;
public flush(): boolean
{
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;
this._expiryTime = wrapper.readInt();
return true;
}
public get expiryTime(): number
{
return this._expiryTime;
}
}

View File

@ -10,6 +10,7 @@ export * from './LoveLockFurniFinishedParser';
export * from './LoveLockFurniFriendConfirmedParser'; export * from './LoveLockFurniFriendConfirmedParser';
export * from './LoveLockFurniStartParser'; export * from './LoveLockFurniStartParser';
export * from './OneWayDoorStatusMessageParser'; export * from './OneWayDoorStatusMessageParser';
export * from './RentableSpaceRentOkMessageParser';
export * from './RequestSpamWallPostItMessageParser'; export * from './RequestSpamWallPostItMessageParser';
export * from './RoomDimmerPresetsMessageData'; export * from './RoomDimmerPresetsMessageData';
export * from './RoomDimmerPresetsMessageParser'; export * from './RoomDimmerPresetsMessageParser';