#28 - RentableSpaceStatusMessageEvent added

This commit is contained in:
oobjectt 2022-12-25 21:10:50 +01:00
parent 26741b78a7
commit 4b09db7ee2
6 changed files with 104 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_STATUS = 3559;
} }

View File

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

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 './RentableSpaceStatusMessageEvent';
export * from './RequestSpamWallPostItMessageEvent'; export * from './RequestSpamWallPostItMessageEvent';
export * from './RoomDimmerPresetsMessageEvent'; export * from './RoomDimmerPresetsMessageEvent';
export * from './wall'; export * from './wall';

View File

@ -0,0 +1,81 @@
import { IMessageDataWrapper, IMessageParser } from '../../../../../../api';
export class RentableSpaceStatusMessageParser implements IMessageParser
{
private _Str_16670: boolean;
private _renterId: number;
private _Str_18360: string;
private _Str_20575: boolean;
private _Str_16491: number;
private _Str_22009: number;
private _price: number;
public flush(): boolean
{
this._Str_16670 = false;
this._renterId = -1;
this._Str_18360 = null;
this._Str_20575 = false;
this._Str_16491 = -1;
this._Str_22009 = -1;
this._price = -1;
return true;
}
public parse(wrapper: IMessageDataWrapper): boolean
{
if(!wrapper) return false;
this._Str_16670 = wrapper.readBoolean();
this._Str_16491 = wrapper.readInt();
this._Str_20575 = (this._Str_16491 === 0);
this._renterId = wrapper.readInt();
this._Str_18360 = wrapper.readString();
this._Str_22009 = wrapper.readInt();
this._price = wrapper.readInt();
if(!this._Str_16670)
{
this._renterId = -1;
this._Str_18360 = '';
}
return true;
}
public get _Str_22736(): boolean
{
return this._Str_16670;
}
public get renterId(): number
{
return this._renterId;
}
public get _Str_23275(): string
{
return this._Str_18360;
}
public get _Str_23603(): boolean
{
return this._Str_20575;
}
public get price(): number
{
return this._price;
}
public get _Str_24083(): number
{
return this._Str_22009;
}
public get _Str_25070(): number
{
return this._Str_16491;
}
}

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 './RentableSpaceStatusMessageParser';
export * from './RequestSpamWallPostItMessageParser'; export * from './RequestSpamWallPostItMessageParser';
export * from './RoomDimmerPresetsMessageData'; export * from './RoomDimmerPresetsMessageData';
export * from './RoomDimmerPresetsMessageParser'; export * from './RoomDimmerPresetsMessageParser';