mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-19 14:56:27 +01:00
Merge branch 'main' into @update/widgets
This commit is contained in:
commit
1b935f9345
File diff suppressed because one or more lines are too long
@ -99,6 +99,12 @@ export class IncomingHeader
|
|||||||
public static NAVIGATOR_SEARCH = 2690;
|
public static NAVIGATOR_SEARCH = 2690;
|
||||||
public static NAVIGATOR_SEARCHES = 3984;
|
public static NAVIGATOR_SEARCHES = 3984;
|
||||||
public static NAVIGATOR_SETTINGS = 518;
|
public static NAVIGATOR_SETTINGS = 518;
|
||||||
|
public static THUMBNAIL_UPDATE_RESULT = 1927;
|
||||||
|
public static CAN_CREATE_ROOM = 378;
|
||||||
|
public static CATEGORIES_WITH_VISITOR_COUNT = 1455;
|
||||||
|
public static COMPETITION_ROOMS_DATA = 3954;
|
||||||
|
public static CONVERTED_ROOM_ID = 1331;
|
||||||
|
public static GUEST_ROOM_SEARCH_RESULT = 52;
|
||||||
public static NOTIFICATION_LIST = 1992;
|
public static NOTIFICATION_LIST = 1992;
|
||||||
public static PET_FIGURE_UPDATE = 1924;
|
public static PET_FIGURE_UPDATE = 1924;
|
||||||
public static PET_INFO = 2901;
|
public static PET_INFO = 2901;
|
||||||
@ -190,6 +196,8 @@ export class IncomingHeader
|
|||||||
public static USER_FURNITURE_REFRESH = 3151;
|
public static USER_FURNITURE_REFRESH = 3151;
|
||||||
public static USER_FURNITURE_REMOVE = 159;
|
public static USER_FURNITURE_REMOVE = 159;
|
||||||
public static USER_HOME_ROOM = 2875;
|
public static USER_HOME_ROOM = 2875;
|
||||||
|
public static ROOM_EVENT_CANCEL = 3479;
|
||||||
|
public static ROOM_EVENT = 1840;
|
||||||
public static USER_IGNORED = 126;
|
public static USER_IGNORED = 126;
|
||||||
public static USER_IGNORED_RESULT = 207;
|
public static USER_IGNORED_RESULT = 207;
|
||||||
public static USER_INFO = 2725;
|
public static USER_INFO = 2725;
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { CanCreateRoomMessageParser } from '../../parser/navigator/CanCreateRoomMessageParser';
|
||||||
|
|
||||||
|
export class CanCreateRoomEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, CanCreateRoomMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): CanCreateRoomMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as CanCreateRoomMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { CategoriesWithVisitorCountParser } from '../../parser/navigator/CategoriesWithVisitorCountParser';
|
||||||
|
|
||||||
|
export class CategoriesWithVisitorCountEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, CategoriesWithVisitorCountParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): CategoriesWithVisitorCountParser
|
||||||
|
{
|
||||||
|
return this.parser as CategoriesWithVisitorCountParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { CompetitionRoomsDataMessageParser } from '../../parser/navigator/CompetitionRoomsDataMessageParser';
|
||||||
|
|
||||||
|
export class CompetitionRoomsDataMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, CompetitionRoomsDataMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): CompetitionRoomsDataMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as CompetitionRoomsDataMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { ConvertedRoomIdMessageParser } from '../../parser/navigator/ConvertedRoomIdMessageParser';
|
||||||
|
|
||||||
|
export class ConvertedRoomIdEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, ConvertedRoomIdMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): ConvertedRoomIdMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as ConvertedRoomIdMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { DoorbellMessageParser } from '../../parser/navigator/DoorbellMessageParser';
|
||||||
|
|
||||||
|
export class DoorbellMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, DoorbellMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): DoorbellMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as DoorbellMessageParser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get userName(): string
|
||||||
|
{
|
||||||
|
return this.getParser().userName;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { FavouriteChangedMessageParser } from '../../parser/navigator/FavouriteChangedMessageParser';
|
||||||
|
|
||||||
|
export class FavouriteChangedEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, FavouriteChangedMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): FavouriteChangedMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as FavouriteChangedMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { FavouritesMessageParser } from '../../parser/navigator/FavouritesMessageParser';
|
||||||
|
|
||||||
|
export class FavouritesEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, FavouritesMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): FavouritesMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as FavouritesMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { FlatAccessDeniedMessageParser } from '../../parser/navigator/FlatAccessDeniedMessageParser';
|
||||||
|
|
||||||
|
export class FlatAccessDeniedMessageEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, FlatAccessDeniedMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): FlatAccessDeniedMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as FlatAccessDeniedMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { FlatCreatedMessageParser } from '../../parser/navigator/FlatCreatedMessageParser';
|
||||||
|
|
||||||
|
export class FlatCreatedEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, FlatCreatedMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): FlatCreatedMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as FlatCreatedMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { GetGuestRoomResultMessageParser } from '../../parser/navigator/GetGuestRoomResultMessageParser';
|
||||||
|
|
||||||
|
export class GetGuestRoomResultEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, GetGuestRoomResultMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): GetGuestRoomResultMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as GetGuestRoomResultMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { GuestRoomSearchResultMessageParser } from '../../parser/navigator/GuestRoomSearchResultMessageParser';
|
||||||
|
|
||||||
|
export class GuestRoomSearchResultEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, GuestRoomSearchResultMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): GuestRoomSearchResultMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as GuestRoomSearchResultMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -1,16 +0,0 @@
|
|||||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
|
||||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
|
||||||
import { NavigatorCategoriesParser } from '../../parser/navigator/NavigatorCategoriesParser';
|
|
||||||
|
|
||||||
export class NavigatorCategoriesEvent extends MessageEvent implements IMessageEvent
|
|
||||||
{
|
|
||||||
constructor(callBack: Function)
|
|
||||||
{
|
|
||||||
super(callBack, NavigatorCategoriesParser);
|
|
||||||
}
|
|
||||||
|
|
||||||
public getParser(): NavigatorCategoriesParser
|
|
||||||
{
|
|
||||||
return this.parser as NavigatorCategoriesParser;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
|
||||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
|
||||||
import { NavigatorEventCategoriesParser } from '../../parser/navigator/NavigatorEventCategoriesParser';
|
|
||||||
|
|
||||||
export class NavigatorEventCategoriesEvent extends MessageEvent implements IMessageEvent
|
|
||||||
{
|
|
||||||
constructor(callBack: Function)
|
|
||||||
{
|
|
||||||
super(callBack, NavigatorEventCategoriesParser);
|
|
||||||
}
|
|
||||||
|
|
||||||
public getParser(): NavigatorEventCategoriesParser
|
|
||||||
{
|
|
||||||
return this.parser as NavigatorEventCategoriesParser;
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { RoomEventCancelMessageParser } from '../../parser/navigator/RoomEventCancelMessageParser';
|
||||||
|
|
||||||
|
export class RoomEventCancelEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, RoomEventCancelMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): RoomEventCancelMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as RoomEventCancelMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { RoomEventMessageParser } from '../../parser/navigator/RoomEventMessageParser';
|
||||||
|
|
||||||
|
export class RoomEventEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, RoomEventMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): RoomEventMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as RoomEventMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { RoomThumbnailUpdateResultMessageParser } from '../../parser/navigator/RoomThumbnailUpdateResultMessageParser';
|
||||||
|
|
||||||
|
export class RoomThumbnailUpdateResultEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, RoomThumbnailUpdateResultMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): RoomThumbnailUpdateResultMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as RoomThumbnailUpdateResultMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { UserEventCatsMessageParser } from '../../parser/navigator/UserEventCatsMessageParser';
|
||||||
|
|
||||||
|
export class UserEventCatsEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, UserEventCatsMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): UserEventCatsMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as UserEventCatsMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||||
|
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||||
|
import { UserFlatCatsMessageParser } from '../../parser/navigator/UserFlatCatsMessageParser';
|
||||||
|
|
||||||
|
export class UserFlatCatsEvent extends MessageEvent implements IMessageEvent
|
||||||
|
{
|
||||||
|
constructor(callBack: Function)
|
||||||
|
{
|
||||||
|
super(callBack, UserFlatCatsMessageParser);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getParser(): UserFlatCatsMessageParser
|
||||||
|
{
|
||||||
|
return this.parser as UserFlatCatsMessageParser;
|
||||||
|
}
|
||||||
|
}
|
@ -1,7 +1,16 @@
|
|||||||
|
export * from './CanCreateRoomEvent';
|
||||||
export * from './CanCreateRoomEventEvent';
|
export * from './CanCreateRoomEventEvent';
|
||||||
export * from './NavigatorCategoriesEvent';
|
export * from './CategoriesWithVisitorCountEvent';
|
||||||
|
export * from './CompetitionRoomsDataMessageEvent';
|
||||||
|
export * from './ConvertedRoomIdEvent';
|
||||||
|
export * from './DoorbellMessageEvent';
|
||||||
|
export * from './FavouriteChangedEvent';
|
||||||
|
export * from './FavouritesEvent';
|
||||||
|
export * from './FlatAccessDeniedMessageEvent';
|
||||||
|
export * from './FlatCreatedEvent';
|
||||||
|
export * from './GetGuestRoomResultEvent';
|
||||||
|
export * from './GuestRoomSearchResultEvent';
|
||||||
export * from './NavigatorCollapsedEvent';
|
export * from './NavigatorCollapsedEvent';
|
||||||
export * from './NavigatorEventCategoriesEvent';
|
|
||||||
export * from './NavigatorHomeRoomEvent';
|
export * from './NavigatorHomeRoomEvent';
|
||||||
export * from './NavigatorLiftedEvent';
|
export * from './NavigatorLiftedEvent';
|
||||||
export * from './NavigatorMetadataEvent';
|
export * from './NavigatorMetadataEvent';
|
||||||
@ -9,3 +18,9 @@ export * from './NavigatorOpenRoomCreatorEvent';
|
|||||||
export * from './NavigatorSearchesEvent';
|
export * from './NavigatorSearchesEvent';
|
||||||
export * from './NavigatorSearchEvent';
|
export * from './NavigatorSearchEvent';
|
||||||
export * from './NavigatorSettingsEvent';
|
export * from './NavigatorSettingsEvent';
|
||||||
|
export * from './RoomEventCancelEvent';
|
||||||
|
export * from './RoomEventEvent';
|
||||||
|
export * from './RoomSettingsUpdatedEvent';
|
||||||
|
export * from './RoomThumbnailUpdateResultEvent';
|
||||||
|
export * from './UserEventCatsEvent';
|
||||||
|
export * from './UserFlatCatsEvent';
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
import { IMessageEvent } from '../../../../../../../core/communication/messages/IMessageEvent';
|
|
||||||
import { MessageEvent } from '../../../../../../../core/communication/messages/MessageEvent';
|
|
||||||
import { RoomDoorbellParser } from '../../../../parser/room/access/doorbell/RoomDoorbellParser';
|
|
||||||
|
|
||||||
export class RoomDoorbellEvent extends MessageEvent implements IMessageEvent
|
|
||||||
{
|
|
||||||
constructor(callBack: Function)
|
|
||||||
{
|
|
||||||
super(callBack, RoomDoorbellParser);
|
|
||||||
}
|
|
||||||
|
|
||||||
public getParser(): RoomDoorbellParser
|
|
||||||
{
|
|
||||||
return this.parser as RoomDoorbellParser;
|
|
||||||
}
|
|
||||||
|
|
||||||
public get userName(): string
|
|
||||||
{
|
|
||||||
return this.getParser().userName;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
import { IMessageEvent } from '../../../../../../../core/communication/messages/IMessageEvent';
|
|
||||||
import { MessageEvent } from '../../../../../../../core/communication/messages/MessageEvent';
|
|
||||||
import { RoomDoorbellRejectedParser } from '../../../../parser/room/access/doorbell/RoomDoorbellRejectedParser';
|
|
||||||
|
|
||||||
export class RoomDoorbellRejectedEvent extends MessageEvent implements IMessageEvent
|
|
||||||
{
|
|
||||||
constructor(callBack: Function)
|
|
||||||
{
|
|
||||||
super(callBack, RoomDoorbellRejectedParser);
|
|
||||||
}
|
|
||||||
|
|
||||||
public getParser(): RoomDoorbellRejectedParser
|
|
||||||
{
|
|
||||||
return this.parser as RoomDoorbellRejectedParser;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,3 +1 @@
|
|||||||
export * from './RoomDoorbellAcceptedEvent';
|
export * from './RoomDoorbellAcceptedEvent';
|
||||||
export * from './RoomDoorbellEvent';
|
|
||||||
export * from './RoomDoorbellRejectedEvent';
|
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
|
|
||||||
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
|
|
||||||
import { RoomInfoParser } from '../../../parser/room/data/RoomInfoParser';
|
|
||||||
|
|
||||||
export class GetGuestRoomResultEvent extends MessageEvent implements IMessageEvent
|
|
||||||
{
|
|
||||||
constructor(callBack: Function)
|
|
||||||
{
|
|
||||||
super(callBack, RoomInfoParser);
|
|
||||||
}
|
|
||||||
|
|
||||||
public getParser(): RoomInfoParser
|
|
||||||
{
|
|
||||||
return this.parser as RoomInfoParser;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,4 +1,3 @@
|
|||||||
export * from './GetGuestRoomResultEvent';
|
|
||||||
export * from './RoomChatSettingsEvent';
|
export * from './RoomChatSettingsEvent';
|
||||||
export * from './RoomEntryInfoMessageEvent';
|
export * from './RoomEntryInfoMessageEvent';
|
||||||
export * from './RoomScoreEvent';
|
export * from './RoomScoreEvent';
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
|
|
||||||
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
|
|
||||||
import { RoomCreatedParser } from '../../../parser/room/engine/RoomCreatedParser';
|
|
||||||
|
|
||||||
export class RoomCreatedEvent extends MessageEvent implements IMessageEvent
|
|
||||||
{
|
|
||||||
constructor(callBack: Function)
|
|
||||||
{
|
|
||||||
super(callBack, RoomCreatedParser);
|
|
||||||
}
|
|
||||||
|
|
||||||
public getParser(): RoomCreatedParser
|
|
||||||
{
|
|
||||||
return this.parser as RoomCreatedParser;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,4 +1,3 @@
|
|||||||
export * from './ObjectData';
|
export * from './ObjectData';
|
||||||
export * from './ObjectsDataUpdateEvent';
|
export * from './ObjectsDataUpdateEvent';
|
||||||
export * from './ObjectsRollingEvent';
|
export * from './ObjectsRollingEvent';
|
||||||
export * from './RoomCreatedEvent';
|
|
||||||
|
@ -101,13 +101,13 @@ export class OutgoingHeader
|
|||||||
public static HABBO_SEARCH = 1210;
|
public static HABBO_SEARCH = 1210;
|
||||||
public static FRIEND_LIST_UPDATE = 1419;
|
public static FRIEND_LIST_UPDATE = 1419;
|
||||||
public static MOD_TOOL_USER_INFO = 3295;
|
public static MOD_TOOL_USER_INFO = 3295;
|
||||||
public static NAVIGATOR_CATEGORIES = 3027;
|
public static GET_USER_FLAT_CATS = 3027;
|
||||||
public static NAVIGATOR_INIT = 2110;
|
public static NAVIGATOR_INIT = 2110;
|
||||||
public static NAVIGATOR_SEARCH = 249;
|
public static NAVIGATOR_SEARCH = 249;
|
||||||
public static NAVIGATOR_SEARCH_CLOSE = 1834;
|
public static NAVIGATOR_SEARCH_CLOSE = 1834;
|
||||||
public static NAVIGATOR_SEARCH_OPEN = 637;
|
public static NAVIGATOR_SEARCH_OPEN = 637;
|
||||||
public static NAVIGATOR_SEARCH_SAVE = 2226;
|
public static NAVIGATOR_SEARCH_SAVE = 2226;
|
||||||
public static NAVIGATOR_SETTINGS = 1782;
|
public static GET_USER_EVENT_CATS = 1782;
|
||||||
public static NAVIGATOR_SETTINGS_SAVE = 3159;
|
public static NAVIGATOR_SETTINGS_SAVE = 3159;
|
||||||
public static NAVIGATOR_CATEGORY_LIST_MODE = 1202;
|
public static NAVIGATOR_CATEGORY_LIST_MODE = 1202;
|
||||||
public static PET_INFO = 2934;
|
public static PET_INFO = 2934;
|
||||||
@ -129,7 +129,34 @@ export class OutgoingHeader
|
|||||||
public static ROOM_ENTER = 2312;
|
public static ROOM_ENTER = 2312;
|
||||||
public static ROOM_FAVORITE = 3817;
|
public static ROOM_FAVORITE = 3817;
|
||||||
public static ROOM_FAVORITE_REMOVE = 309;
|
public static ROOM_FAVORITE_REMOVE = 309;
|
||||||
public static ROOM_INFO = 2230;
|
public static CAN_CREATE_ROOM = 2128;
|
||||||
|
public static CANCEL_ROOM_EVENT = 2725;
|
||||||
|
public static EDIT_ROOM_EVENT = 3991;
|
||||||
|
public static COMPETITION_ROOM_SEARCH = 433;
|
||||||
|
public static FORWARD_TO_RANDOM_PROMOTED_ROOM = 10;
|
||||||
|
public static FORWARD_TO_SOME_ROOM = 1703;
|
||||||
|
public static GET_CATEGORIES_WITH_USER_COUNT = 3782;
|
||||||
|
public static GET_GUEST_ROOM = 2230;
|
||||||
|
public static GET_OFFICIAL_ROOMS = 1229;
|
||||||
|
public static GET_POPULAR_ROOM_TAGS = 826;
|
||||||
|
public static GUILD_BASE_SEARCH = 2930;
|
||||||
|
public static MY_FAVOURITE_ROOMS_SEARCH = 2578;
|
||||||
|
public static MY_FREQUENT_ROOM_HISTORY_SEARCH = 1002;
|
||||||
|
public static MY_FRIENDS_ROOM_SEARCH = 2266;
|
||||||
|
public static MY_GUILD_BASES_SEARCH = 39;
|
||||||
|
public static MY_RECOMMENDED_ROOMS = 2537;
|
||||||
|
public static MY_ROOM_HISTORY_SEARCH = 2264;
|
||||||
|
public static MY_ROOM_RIGHTS_SEARCH = 272;
|
||||||
|
public static MY_ROOMS_SEARCH = 2277;
|
||||||
|
public static POPULAR_ROOMS_SEARCH = 2758;
|
||||||
|
public static ROOM_AD_EVENT_TAB_CLICKED = 2412;
|
||||||
|
public static ROOM_AD_EVENT_TAB_VIEWED = 2668;
|
||||||
|
public static ROOM_AD_SEARCH = 2809;
|
||||||
|
public static ROOM_TEXT_SEARCH = 3943;
|
||||||
|
public static ROOMS_WHERE_MY_FRIENDS_ARE = 1786;
|
||||||
|
public static ROOMS_WITH_HIGHEST_SCORE_SEARCH = 2939;
|
||||||
|
public static SET_ROOM_SESSION_TAGS = 3305;
|
||||||
|
public static UPDATE_ROOM_THUMBNAIL = 2468;
|
||||||
public static ROOM_KICK = 1320;
|
public static ROOM_KICK = 1320;
|
||||||
public static ROOM_LIKE = 3582;
|
public static ROOM_LIKE = 3582;
|
||||||
public static ROOM_MODEL = 2300;
|
public static ROOM_MODEL = 2300;
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class AddFavouriteRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof AddFavouriteRoomMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof AddFavouriteRoomMessageComposer>;
|
||||||
|
|
||||||
|
constructor(roomId: number)
|
||||||
|
{
|
||||||
|
this._data = [ roomId ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -1,8 +1,8 @@
|
|||||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
export class NavigatorCategoriesComposer implements IMessageComposer<ConstructorParameters<typeof NavigatorCategoriesComposer>>
|
export class CanCreateRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof CanCreateRoomMessageComposer>>
|
||||||
{
|
{
|
||||||
private _data: ConstructorParameters<typeof NavigatorCategoriesComposer>;
|
private _data: ConstructorParameters<typeof CanCreateRoomMessageComposer>;
|
||||||
|
|
||||||
constructor()
|
constructor()
|
||||||
{
|
{
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class CancelEventMessageComposer implements IMessageComposer<ConstructorParameters<typeof CancelEventMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof CancelEventMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k: number)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class CompetitionRoomsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof CompetitionRoomsSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof CompetitionRoomsSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k:number, _arg_2:number)
|
||||||
|
{
|
||||||
|
this._data = [k, _arg_2];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -1,8 +1,8 @@
|
|||||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
export class RoomCreateComposer implements IMessageComposer<ConstructorParameters<typeof RoomCreateComposer>>
|
export class CreateFlatMessageComposer implements IMessageComposer<ConstructorParameters<typeof CreateFlatMessageComposer>>
|
||||||
{
|
{
|
||||||
private _data: ConstructorParameters<typeof RoomCreateComposer>;
|
private _data: ConstructorParameters<typeof CreateFlatMessageComposer>;
|
||||||
|
|
||||||
constructor(roomName: string, roomDesc: string, modelName: string, categoryId: number, maxVisitors: number, tradeType: number)
|
constructor(roomName: string, roomDesc: string, modelName: string, categoryId: number, maxVisitors: number, tradeType: number)
|
||||||
{
|
{
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class DeleteFavouriteRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof DeleteFavouriteRoomMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof DeleteFavouriteRoomMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k: number)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class EditEventMessageComposer implements IMessageComposer<ConstructorParameters<typeof EditEventMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof EditEventMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k:number, _arg_2:string, _arg_3:string)
|
||||||
|
{
|
||||||
|
this._data = [ k, _arg_2, _arg_3 ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class ForwardToARandomPromotedRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof ForwardToARandomPromotedRoomMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof ForwardToARandomPromotedRoomMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k:string)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class ForwardToSomeRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof ForwardToSomeRoomMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof ForwardToSomeRoomMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k:string)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class GetCategoriesWithUserCountMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetCategoriesWithUserCountMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof GetCategoriesWithUserCountMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
export class RoomInfoComposer implements IMessageComposer<[ number, number, number ]>
|
export class GetGuestRoomMessageComposer implements IMessageComposer<[ number, number, number ]>
|
||||||
{
|
{
|
||||||
private _data: [ number, number, number ];
|
private _data: [ number, number, number ];
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class GetOfficialRoomsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetOfficialRoomsMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof GetOfficialRoomsMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k: number = 0)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class GetPopularRoomTagsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetPopularRoomTagsMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof GetPopularRoomTagsMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class GetUserEventCatsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetUserEventCatsMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof GetUserEventCatsMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class GetUserFlatCatsMessageComposer implements IMessageComposer<ConstructorParameters<typeof GetUserFlatCatsMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof GetUserFlatCatsMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class GuildBaseSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof GuildBaseSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof GuildBaseSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k: number)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class MyFavouriteRoomsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyFavouriteRoomsSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof MyFavouriteRoomsSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class MyFrequentRoomHistorySearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyFrequentRoomHistorySearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof MyFrequentRoomHistorySearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class MyFriendsRoomsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyFriendsRoomsSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof MyFriendsRoomsSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class MyGuildBasesSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyGuildBasesSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof MyGuildBasesSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class MyRecommendedRoomsMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyRecommendedRoomsMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof MyRecommendedRoomsMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class MyRoomHistorySearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyRoomHistorySearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof MyRoomHistorySearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class MyRoomRightsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyRoomRightsSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof MyRoomRightsSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -1,8 +1,8 @@
|
|||||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
export class NavigatorSettingsComposer implements IMessageComposer<ConstructorParameters<typeof NavigatorSettingsComposer>>
|
export class MyRoomsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof MyRoomsSearchMessageComposer>>
|
||||||
{
|
{
|
||||||
private _data: ConstructorParameters<typeof NavigatorSettingsComposer>;
|
private _data: ConstructorParameters<typeof MyRoomsSearchMessageComposer>;
|
||||||
|
|
||||||
constructor()
|
constructor()
|
||||||
{
|
{
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class PopularRoomsSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof PopularRoomsSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof PopularRoomsSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k:string, _arg_2:number)
|
||||||
|
{
|
||||||
|
this._data = [ k, _arg_2 ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class RateFlatMessageComposer implements IMessageComposer<ConstructorParameters<typeof RateFlatMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof RateFlatMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k: number)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class RoomAdEventTabAdClickedComposer implements IMessageComposer<ConstructorParameters<typeof RoomAdEventTabAdClickedComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof RoomAdEventTabAdClickedComposer>;
|
||||||
|
|
||||||
|
constructor(k:number, _arg_2:string, _arg_3:number)
|
||||||
|
{
|
||||||
|
this._data = [ k, _arg_2, _arg_3 ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class RoomAdEventTabViewedComposer implements IMessageComposer<ConstructorParameters<typeof RoomAdEventTabViewedComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof RoomAdEventTabViewedComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class RoomAdSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof RoomAdSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof RoomAdSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k: number, _arg_2: number)
|
||||||
|
{
|
||||||
|
this._data = [ k, _arg_2 ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class RoomTextSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof RoomTextSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof RoomTextSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k: string)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class RoomsWhereMyFriendsAreSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof RoomsWhereMyFriendsAreSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof RoomsWhereMyFriendsAreSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor()
|
||||||
|
{
|
||||||
|
this._data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class RoomsWithHighestScoreSearchMessageComposer implements IMessageComposer<ConstructorParameters<typeof RoomsWithHighestScoreSearchMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof RoomsWithHighestScoreSearchMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k: number)
|
||||||
|
{
|
||||||
|
this._data = [ k ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class SetRoomSessionTagsMessageComposer implements IMessageComposer<ConstructorParameters<typeof SetRoomSessionTagsMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof SetRoomSessionTagsMessageComposer>;
|
||||||
|
|
||||||
|
constructor(k: string, _arg_2: string)
|
||||||
|
{
|
||||||
|
this._data = [ k, _arg_2 ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class ToggleStaffPickMessageComposer implements IMessageComposer<ConstructorParameters<typeof ToggleStaffPickMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof ToggleStaffPickMessageComposer>;
|
||||||
|
|
||||||
|
constructor(roomId: number)
|
||||||
|
{
|
||||||
|
this._data = [ roomId ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class UpdateHomeRoomMessageComposer implements IMessageComposer<ConstructorParameters<typeof UpdateHomeRoomMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof UpdateHomeRoomMessageComposer>;
|
||||||
|
|
||||||
|
constructor(roomId: number)
|
||||||
|
{
|
||||||
|
this._data = [ roomId ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
||||||
|
|
||||||
|
export class UpdateRoomThumbnailMessageComposer implements IMessageComposer<ConstructorParameters<typeof UpdateRoomThumbnailMessageComposer>>
|
||||||
|
{
|
||||||
|
private _data: ConstructorParameters<typeof UpdateRoomThumbnailMessageComposer>;
|
||||||
|
|
||||||
|
constructor(flatId:number, bgImgId:number, frontImgId:number, objCount:number)
|
||||||
|
{
|
||||||
|
this._data = [ flatId, bgImgId, frontImgId, objCount ];
|
||||||
|
}
|
||||||
|
|
||||||
|
public getMessageArray()
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
@ -1,11 +1,45 @@
|
|||||||
|
export * from './AddFavouriteRoomMessageComposer';
|
||||||
|
export * from './CancelEventMessageComposer';
|
||||||
|
export * from './CanCreateRoomMessageComposer';
|
||||||
|
export * from './CompetitionRoomsSearchMessageComposer';
|
||||||
export * from './ConvertGlobalRoomIdComposer';
|
export * from './ConvertGlobalRoomIdComposer';
|
||||||
export * from './NavigatorCategoriesComposer';
|
export * from './CreateFlatMessageComposer';
|
||||||
|
export * from './DeleteFavouriteRoomMessageComposer';
|
||||||
|
export * from './EditEventMessageComposer';
|
||||||
|
export * from './ForwardToARandomPromotedRoomMessageComposer';
|
||||||
|
export * from './ForwardToSomeRoomMessageComposer';
|
||||||
|
export * from './GetCategoriesWithUserCountMessageComposer';
|
||||||
|
export * from './GetGuestRoomMessageComposer';
|
||||||
|
export * from './GetOfficialRoomsMessageComposer';
|
||||||
|
export * from './GetPopularRoomTagsMessageComposer';
|
||||||
|
export * from './GetUserEventCatsMessageComposer';
|
||||||
|
export * from './GetUserFlatCatsMessageComposer';
|
||||||
|
export * from './GuildBaseSearchMessageComposer';
|
||||||
|
export * from './MyFavouriteRoomsSearchMessageComposer';
|
||||||
|
export * from './MyFrequentRoomHistorySearchMessageComposer';
|
||||||
|
export * from './MyFriendsRoomsSearchMessageComposer';
|
||||||
|
export * from './MyGuildBasesSearchMessageComposer';
|
||||||
|
export * from './MyRecommendedRoomsMessageComposer';
|
||||||
|
export * from './MyRoomHistorySearchMessageComposer';
|
||||||
|
export * from './MyRoomRightsSearchMessageComposer';
|
||||||
|
export * from './MyRoomsSearchMessageComposer';
|
||||||
export * from './NavigatorCategoryListModeComposer';
|
export * from './NavigatorCategoryListModeComposer';
|
||||||
export * from './NavigatorInitComposer';
|
export * from './NavigatorInitComposer';
|
||||||
export * from './NavigatorSearchCloseComposer';
|
export * from './NavigatorSearchCloseComposer';
|
||||||
export * from './NavigatorSearchComposer';
|
export * from './NavigatorSearchComposer';
|
||||||
export * from './NavigatorSearchOpenComposer';
|
export * from './NavigatorSearchOpenComposer';
|
||||||
export * from './NavigatorSearchSaveComposer';
|
export * from './NavigatorSearchSaveComposer';
|
||||||
export * from './NavigatorSettingsComposer';
|
|
||||||
export * from './NavigatorSettingsSaveComposer';
|
export * from './NavigatorSettingsSaveComposer';
|
||||||
|
export * from './PopularRoomsSearchMessageComposer';
|
||||||
|
export * from './RateFlatMessageComposer';
|
||||||
export * from './RemoveOwnRoomRightsRoomMessageComposer';
|
export * from './RemoveOwnRoomRightsRoomMessageComposer';
|
||||||
|
export * from './RoomAdEventTabAdClickedComposer';
|
||||||
|
export * from './RoomAdEventTabViewedComposer';
|
||||||
|
export * from './RoomAdSearchMessageComposer';
|
||||||
|
export * from './RoomsWhereMyFriendsAreSearchMessageComposer';
|
||||||
|
export * from './RoomsWithHighestScoreSearchMessageComposer';
|
||||||
|
export * from './RoomTextSearchMessageComposer';
|
||||||
|
export * from './SetRoomSessionTagsMessageComposer';
|
||||||
|
export * from './ToggleStaffPickMessageComposer';
|
||||||
|
export * from './UpdateHomeRoomMessageComposer';
|
||||||
|
export * from './UpdateRoomThumbnailMessageComposer';
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
|
||||||
|
|
||||||
export class RoomLikeRoomComposer implements IMessageComposer<ConstructorParameters<typeof RoomLikeRoomComposer>>
|
|
||||||
{
|
|
||||||
private _data: ConstructorParameters<typeof RoomLikeRoomComposer>;
|
|
||||||
|
|
||||||
constructor(k: number)
|
|
||||||
{
|
|
||||||
this._data = [ k ];
|
|
||||||
}
|
|
||||||
|
|
||||||
public getMessageArray()
|
|
||||||
{
|
|
||||||
return this._data;
|
|
||||||
}
|
|
||||||
|
|
||||||
public dispose(): void
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
|
||||||
|
|
||||||
export class RoomStaffPickComposer implements IMessageComposer<ConstructorParameters<typeof RoomStaffPickComposer>>
|
|
||||||
{
|
|
||||||
private _data: ConstructorParameters<typeof RoomStaffPickComposer>;
|
|
||||||
|
|
||||||
constructor(roomId: number)
|
|
||||||
{
|
|
||||||
this._data = [ roomId ];
|
|
||||||
}
|
|
||||||
|
|
||||||
public getMessageArray()
|
|
||||||
{
|
|
||||||
return this._data;
|
|
||||||
}
|
|
||||||
|
|
||||||
public dispose(): void
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
@ -4,8 +4,6 @@ export * from './RoomBanUserComposer';
|
|||||||
export * from './RoomDeleteComposer';
|
export * from './RoomDeleteComposer';
|
||||||
export * from './RoomGiveRightsComposer';
|
export * from './RoomGiveRightsComposer';
|
||||||
export * from './RoomKickUserComposer';
|
export * from './RoomKickUserComposer';
|
||||||
export * from './RoomLikeRoomComposer';
|
|
||||||
export * from './RoomMuteUserComposer';
|
export * from './RoomMuteUserComposer';
|
||||||
export * from './RoomStaffPickComposer';
|
|
||||||
export * from './RoomTakeRightsComposer';
|
export * from './RoomTakeRightsComposer';
|
||||||
export * from './RoomUnbanUserComposer';
|
export * from './RoomUnbanUserComposer';
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
export * from './RoomBannedUsersComposer';
|
export * from './RoomBannedUsersComposer';
|
||||||
export * from './RoomInfoComposer';
|
|
||||||
export * from './RoomSettingsComposer';
|
export * from './RoomSettingsComposer';
|
||||||
export * from './RoomUsersWithRightsComposer';
|
export * from './RoomUsersWithRightsComposer';
|
||||||
export * from './SaveRoomSettingsComposer';
|
export * from './SaveRoomSettingsComposer';
|
||||||
|
@ -6,6 +6,5 @@ export * from './engine';
|
|||||||
export * from './furniture';
|
export * from './furniture';
|
||||||
export * from './layout';
|
export * from './layout';
|
||||||
export * from './RedeemItemClothingComposer';
|
export * from './RedeemItemClothingComposer';
|
||||||
export * from './RoomCreateComposer';
|
|
||||||
export * from './session';
|
export * from './session';
|
||||||
export * from './unit';
|
export * from './unit';
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
import { IMessageComposer } from '../../../../../../core/communication/messages/IMessageComposer';
|
|
||||||
|
|
||||||
export class UserHomeRoomComposer implements IMessageComposer<ConstructorParameters<typeof UserHomeRoomComposer>>
|
|
||||||
{
|
|
||||||
private _data: ConstructorParameters<typeof UserHomeRoomComposer>;
|
|
||||||
|
|
||||||
constructor(roomId: number)
|
|
||||||
{
|
|
||||||
this._data = [ roomId ];
|
|
||||||
}
|
|
||||||
|
|
||||||
public getMessageArray()
|
|
||||||
{
|
|
||||||
return this._data;
|
|
||||||
}
|
|
||||||
|
|
||||||
public dispose(): void
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
@ -5,7 +5,6 @@ export * from './IgnoreUserIdComposer';
|
|||||||
export * from './UnignoreUserComposer';
|
export * from './UnignoreUserComposer';
|
||||||
export * from './UserCurrentBadgesComposer';
|
export * from './UserCurrentBadgesComposer';
|
||||||
export * from './UserFigureComposer';
|
export * from './UserFigureComposer';
|
||||||
export * from './UserHomeRoomComposer';
|
|
||||||
export * from './UserMottoComposer';
|
export * from './UserMottoComposer';
|
||||||
export * from './UserProfileComposer';
|
export * from './UserProfileComposer';
|
||||||
export * from './UserRelationshipsComposer';
|
export * from './UserRelationshipsComposer';
|
||||||
|
@ -0,0 +1,36 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
|
||||||
|
export class CanCreateRoomMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
public static readonly CREATION_ALLOWED = 0;
|
||||||
|
public static readonly ROOM_LIMIT_REACHED = 1;
|
||||||
|
|
||||||
|
private _resultCode: number;
|
||||||
|
private _roomLimit: number;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._resultCode = wrapper.readInt();
|
||||||
|
this._roomLimit = wrapper.readInt();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get resultCode(): number
|
||||||
|
{
|
||||||
|
return this._resultCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get roomLimit(): number
|
||||||
|
{
|
||||||
|
return this._roomLimit;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
import { CategoriesWithVisitorCountData } from './utils/CategoriesWithVisitorCountData';
|
||||||
|
|
||||||
|
export class CategoriesWithVisitorCountParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _data:CategoriesWithVisitorCountData;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._data = new CategoriesWithVisitorCountData(wrapper);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get data():CategoriesWithVisitorCountData
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
import { CompetitionRoomsData } from './utils/CompetitionRoomsData';
|
||||||
|
|
||||||
|
export class CompetitionRoomsDataMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _data: CompetitionRoomsData;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._data = new CompetitionRoomsData(wrapper);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get data():CompetitionRoomsData
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
|
||||||
|
export class ConvertedRoomIdMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _globalId:string;
|
||||||
|
private _convertedId:number;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._globalId = wrapper.readString();
|
||||||
|
this._convertedId = wrapper.readInt();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get globalId(): string
|
||||||
|
{
|
||||||
|
return this._globalId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get convertedId(): number
|
||||||
|
{
|
||||||
|
return this._convertedId;
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,7 @@
|
|||||||
import { IMessageDataWrapper, IMessageParser } from '../../../../../../../core';
|
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
|
||||||
export class RoomDoorbellRejectedParser implements IMessageParser
|
export class DoorbellMessageParser implements IMessageParser
|
||||||
{
|
{
|
||||||
private _userName: string;
|
private _userName: string;
|
||||||
|
|
@ -0,0 +1,33 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
|
||||||
|
export class FavouriteChangedMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _flatId:number;
|
||||||
|
private _added:boolean;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._flatId = wrapper.readInt();
|
||||||
|
this._added = wrapper.readBoolean();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get flatId():number
|
||||||
|
{
|
||||||
|
return this._flatId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get added():boolean
|
||||||
|
{
|
||||||
|
return this._added;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
|
||||||
|
export class FavouritesMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _limit:number;
|
||||||
|
private _favouriteRoomIds:number[];
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._favouriteRoomIds = [];
|
||||||
|
this._limit = wrapper.readInt();
|
||||||
|
|
||||||
|
const count = wrapper.readInt();
|
||||||
|
|
||||||
|
for(let i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
this._favouriteRoomIds.push(wrapper.readInt());
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get limit(): number
|
||||||
|
{
|
||||||
|
return this._limit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get favoriteRoomIds(): number[]
|
||||||
|
{
|
||||||
|
return this._favouriteRoomIds;
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
import { IMessageDataWrapper, IMessageParser } from '../../../../../../../core';
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
|
||||||
|
|
||||||
export class RoomDoorbellParser implements IMessageParser
|
export class FlatAccessDeniedMessageParser implements IMessageParser
|
||||||
{
|
{
|
||||||
private _userName: string;
|
private _userName: string;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
import { IMessageDataWrapper, IMessageParser } from '../../../../../../core';
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
|
||||||
|
|
||||||
export class RoomCreatedParser implements IMessageParser
|
export class FlatCreatedMessageParser implements IMessageParser
|
||||||
{
|
{
|
||||||
private _roomId: number;
|
private _roomId: number;
|
||||||
private _roomName: string;
|
private _roomName: string;
|
@ -1,10 +1,10 @@
|
|||||||
import { IMessageParser } from '../../../../../../././core/communication/messages/IMessageParser';
|
import { IMessageParser } from '../../../../../././core/communication/messages/IMessageParser';
|
||||||
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
import { RoomChatSettings } from '../../../incoming/roomsettings/RoomChatSettings';
|
import { RoomChatSettings } from '../../incoming/roomsettings/RoomChatSettings';
|
||||||
import { RoomModerationSettings } from '../../../incoming/roomsettings/RoomModerationSettings';
|
import { RoomModerationSettings } from '../../incoming/roomsettings/RoomModerationSettings';
|
||||||
import { RoomDataParser } from './RoomDataParser';
|
import { RoomDataParser } from '../room/data/RoomDataParser';
|
||||||
|
|
||||||
export class RoomInfoParser implements IMessageParser
|
export class GetGuestRoomResultMessageParser implements IMessageParser
|
||||||
{
|
{
|
||||||
private _roomEnter: boolean;
|
private _roomEnter: boolean;
|
||||||
private _roomForward: boolean;
|
private _roomForward: boolean;
|
@ -0,0 +1,28 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
import { GuestRoomSearchResultData } from './utils/GuestRoomSearchResultData';
|
||||||
|
|
||||||
|
export class GuestRoomSearchResultMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
_data:GuestRoomSearchResultData;
|
||||||
|
|
||||||
|
public flush(): boolean
|
||||||
|
{
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
if(!wrapper) return false;
|
||||||
|
|
||||||
|
this._data = new GuestRoomSearchResultData(wrapper);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get data():GuestRoomSearchResultData
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
|
||||||
|
export class RoomEventCancelMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
import { RoomEventData } from './utils/RoomEventData';
|
||||||
|
|
||||||
|
export class RoomEventMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _data: RoomEventData;
|
||||||
|
|
||||||
|
flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
this._data = new RoomEventData(wrapper);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get data(): RoomEventData
|
||||||
|
{
|
||||||
|
return this._data;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../core';
|
||||||
|
import { IMessageParser } from '../../../../../core/communication/messages/IMessageParser';
|
||||||
|
|
||||||
|
export class RoomThumbnailUpdateResultMessageParser implements IMessageParser
|
||||||
|
{
|
||||||
|
private _flatId:number;
|
||||||
|
private _resultCode:number;
|
||||||
|
|
||||||
|
flush(): boolean
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
parse(wrapper: IMessageDataWrapper): boolean
|
||||||
|
{
|
||||||
|
this._flatId = wrapper.readInt();
|
||||||
|
this._resultCode = wrapper.readInt();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get flatId():number
|
||||||
|
{
|
||||||
|
return this._flatId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get resultCode():number
|
||||||
|
{
|
||||||
|
return this._resultCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
|
||||||
import { NavigatorEventCategoryDataParser } from './NavigatorEventCategoryDataParser';
|
import { NavigatorEventCategoryDataParser } from './NavigatorEventCategoryDataParser';
|
||||||
|
|
||||||
export class NavigatorEventCategoriesParser implements IMessageParser
|
export class UserEventCatsMessageParser implements IMessageParser
|
||||||
{
|
{
|
||||||
private _categories: NavigatorEventCategoryDataParser[];
|
private _categories: NavigatorEventCategoryDataParser[];
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
|
import { IMessageDataWrapper, IMessageParser } from '../../../../../core';
|
||||||
import { NavigatorCategoryDataParser } from './NavigatorCategoryDataParser';
|
import { NavigatorCategoryDataParser } from './NavigatorCategoryDataParser';
|
||||||
|
|
||||||
export class NavigatorCategoriesParser implements IMessageParser
|
export class UserFlatCatsMessageParser implements IMessageParser
|
||||||
{
|
{
|
||||||
private _categories: NavigatorCategoryDataParser[];
|
private _categories: NavigatorCategoryDataParser[];
|
||||||
|
|
@ -1,8 +1,17 @@
|
|||||||
export * from './CanCreateRoomEventParser';
|
export * from './CanCreateRoomEventParser';
|
||||||
export * from './NavigatorCategoriesParser';
|
export * from './CanCreateRoomMessageParser';
|
||||||
|
export * from './CategoriesWithVisitorCountParser';
|
||||||
|
export * from './CompetitionRoomsDataMessageParser';
|
||||||
|
export * from './ConvertedRoomIdMessageParser';
|
||||||
|
export * from './DoorbellMessageParser';
|
||||||
|
export * from './FavouriteChangedMessageParser';
|
||||||
|
export * from './FavouritesMessageParser';
|
||||||
|
export * from './FlatAccessDeniedMessageParser';
|
||||||
|
export * from './FlatCreatedMessageParser';
|
||||||
|
export * from './GetGuestRoomResultMessageParser';
|
||||||
|
export * from './GuestRoomSearchResultMessageParser';
|
||||||
export * from './NavigatorCategoryDataParser';
|
export * from './NavigatorCategoryDataParser';
|
||||||
export * from './NavigatorCollapsedParser';
|
export * from './NavigatorCollapsedParser';
|
||||||
export * from './NavigatorEventCategoriesParser';
|
|
||||||
export * from './NavigatorEventCategoryDataParser';
|
export * from './NavigatorEventCategoryDataParser';
|
||||||
export * from './NavigatorHomeRoomParser';
|
export * from './NavigatorHomeRoomParser';
|
||||||
export * from './NavigatorLiftedDataParser';
|
export * from './NavigatorLiftedDataParser';
|
||||||
@ -12,5 +21,10 @@ export * from './NavigatorOpenRoomCreatorParser';
|
|||||||
export * from './NavigatorSearchesParser';
|
export * from './NavigatorSearchesParser';
|
||||||
export * from './NavigatorSearchParser';
|
export * from './NavigatorSearchParser';
|
||||||
export * from './NavigatorSettingsParser';
|
export * from './NavigatorSettingsParser';
|
||||||
|
export * from './RoomEventCancelMessageParser';
|
||||||
|
export * from './RoomEventMessageParser';
|
||||||
export * from './RoomSettingsUpdatedParser';
|
export * from './RoomSettingsUpdatedParser';
|
||||||
|
export * from './RoomThumbnailUpdateResultMessageParser';
|
||||||
|
export * from './UserEventCatsMessageParser';
|
||||||
|
export * from './UserFlatCatsMessageParser';
|
||||||
export * from './utils';
|
export * from './utils';
|
||||||
|
@ -0,0 +1,34 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
|
||||||
|
export class CategoriesWithVisitorCountData
|
||||||
|
{
|
||||||
|
private _categoryToCurrentUserCountMap:Map<number, number>;
|
||||||
|
private _categoryToMaxUserCountMap:Map<number, number>;
|
||||||
|
|
||||||
|
constructor(k: IMessageDataWrapper)
|
||||||
|
{
|
||||||
|
this._categoryToCurrentUserCountMap = new Map();
|
||||||
|
this._categoryToMaxUserCountMap = new Map();
|
||||||
|
|
||||||
|
const count = k.readInt();
|
||||||
|
|
||||||
|
for(let i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
const _local_4 = k.readInt();
|
||||||
|
const _local_5 = k.readInt();
|
||||||
|
const _local_6 = k.readInt();
|
||||||
|
this._categoryToCurrentUserCountMap.set(_local_4, _local_5);
|
||||||
|
this._categoryToMaxUserCountMap.set(_local_4, _local_6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public get categoryToCurrentUserCountMap():Map<number, number>
|
||||||
|
{
|
||||||
|
return this._categoryToCurrentUserCountMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get categoryToMaxUserCountMap():Map<number, number>
|
||||||
|
{
|
||||||
|
return this._categoryToMaxUserCountMap;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
|
||||||
|
export class CompetitionRoomsData
|
||||||
|
{
|
||||||
|
private _goalId: number;
|
||||||
|
private _pageIndex: number;
|
||||||
|
private _pageCount: number;
|
||||||
|
|
||||||
|
constructor(k: IMessageDataWrapper, _arg_2:number=0, _arg_3:number=0)
|
||||||
|
{
|
||||||
|
this._goalId = _arg_2;
|
||||||
|
this._pageIndex = _arg_3;
|
||||||
|
|
||||||
|
if(k)
|
||||||
|
{
|
||||||
|
this._goalId = k.readInt();
|
||||||
|
this._pageIndex = k.readInt();
|
||||||
|
this._pageCount = k.readInt();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public get goalId(): number
|
||||||
|
{
|
||||||
|
return this._goalId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get pageIndex(): number
|
||||||
|
{
|
||||||
|
return this._pageIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get pageCount(): number
|
||||||
|
{
|
||||||
|
return this._pageCount;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,76 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { RoomDataParser } from '../../room/data/RoomDataParser';
|
||||||
|
import { OfficialRoomEntryData } from './OfficialRoomEntryData';
|
||||||
|
|
||||||
|
export class GuestRoomSearchResultData
|
||||||
|
{
|
||||||
|
private _searchType:number;
|
||||||
|
private _searchParam:string;
|
||||||
|
private _rooms:RoomDataParser[];
|
||||||
|
private _ad:OfficialRoomEntryData;
|
||||||
|
private _disposed:boolean;
|
||||||
|
|
||||||
|
constructor(k: IMessageDataWrapper)
|
||||||
|
{
|
||||||
|
this._rooms = [];
|
||||||
|
this._searchType = k.readInt();
|
||||||
|
this._searchParam = k.readString();
|
||||||
|
const count = k.readInt();
|
||||||
|
for(let i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
this._rooms.push(new RoomDataParser(k));
|
||||||
|
}
|
||||||
|
const hasAdditional = k.readBoolean();
|
||||||
|
if(hasAdditional)
|
||||||
|
{
|
||||||
|
this._ad = new OfficialRoomEntryData(k);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose():void
|
||||||
|
{
|
||||||
|
if(this._disposed)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this._disposed = true;
|
||||||
|
if(this._rooms != null)
|
||||||
|
{
|
||||||
|
for(const k of this._rooms)
|
||||||
|
{
|
||||||
|
k.flush();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(this._ad != null)
|
||||||
|
{
|
||||||
|
this._ad.dispose();
|
||||||
|
this._ad = null;
|
||||||
|
}
|
||||||
|
this._rooms = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get disposed():boolean
|
||||||
|
{
|
||||||
|
return this._disposed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get searchType():number
|
||||||
|
{
|
||||||
|
return this._searchType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_25185():string
|
||||||
|
{
|
||||||
|
return this._searchParam;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get rooms():RoomDataParser[]
|
||||||
|
{
|
||||||
|
return this._rooms;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get ad():OfficialRoomEntryData
|
||||||
|
{
|
||||||
|
return this._ad;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,148 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
import { RoomDataParser } from '../../room';
|
||||||
|
|
||||||
|
export class OfficialRoomEntryData
|
||||||
|
{
|
||||||
|
public static readonly _Str_14955 = 1;
|
||||||
|
public static readonly _Str_12025 = 2;
|
||||||
|
public static readonly _Str_16098 = 4;
|
||||||
|
|
||||||
|
private _index: number;
|
||||||
|
private _Str_20260: string;
|
||||||
|
private _Str_21337: string;
|
||||||
|
private _Str_21113: boolean;
|
||||||
|
private _picText: string;
|
||||||
|
private _Str_6192: string;
|
||||||
|
private _Str_22099: number;
|
||||||
|
private _userCount: number;
|
||||||
|
private _type: number;
|
||||||
|
private _tag: string;
|
||||||
|
private _Str_2567: RoomDataParser;
|
||||||
|
private _open: boolean;
|
||||||
|
private _disposed: boolean;
|
||||||
|
|
||||||
|
constructor(k: IMessageDataWrapper)
|
||||||
|
{
|
||||||
|
this._index = k.readInt();
|
||||||
|
this._Str_20260 = k.readString();
|
||||||
|
this._Str_21337 = k.readString();
|
||||||
|
this._Str_21113 = k.readInt() == 1;
|
||||||
|
this._picText = k.readString();
|
||||||
|
this._Str_6192 = k.readString();
|
||||||
|
this._Str_22099 = k.readInt();
|
||||||
|
this._userCount = k.readInt();
|
||||||
|
this._type = k.readInt();
|
||||||
|
if(this._type == OfficialRoomEntryData._Str_14955)
|
||||||
|
{
|
||||||
|
this._tag = k.readString();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(this._type == OfficialRoomEntryData._Str_12025)
|
||||||
|
{
|
||||||
|
this._Str_2567 = new RoomDataParser(k);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this._open = k.readBoolean();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose(): void
|
||||||
|
{
|
||||||
|
if(this._disposed)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this._disposed = true;
|
||||||
|
if(this._Str_2567 != null)
|
||||||
|
{
|
||||||
|
this._Str_2567.flush();
|
||||||
|
this._Str_2567 = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public get disposed(): boolean
|
||||||
|
{
|
||||||
|
return this._disposed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get type(): number
|
||||||
|
{
|
||||||
|
return this._type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get index(): number
|
||||||
|
{
|
||||||
|
return this._index;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_9428(): string
|
||||||
|
{
|
||||||
|
return this._Str_20260;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_22426(): string
|
||||||
|
{
|
||||||
|
return this._Str_21337;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_5386(): boolean
|
||||||
|
{
|
||||||
|
return this._Str_21113;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get picText(): string
|
||||||
|
{
|
||||||
|
return this._picText;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_10304(): string
|
||||||
|
{
|
||||||
|
return this._Str_6192;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_22186(): number
|
||||||
|
{
|
||||||
|
return this._Str_22099;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get tag(): string
|
||||||
|
{
|
||||||
|
return this._tag;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get userCount(): number
|
||||||
|
{
|
||||||
|
return this._userCount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_5019(): RoomDataParser
|
||||||
|
{
|
||||||
|
return this._Str_2567;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get open(): boolean
|
||||||
|
{
|
||||||
|
return this._open;
|
||||||
|
}
|
||||||
|
|
||||||
|
public _Str_16147(): void
|
||||||
|
{
|
||||||
|
this._open = !this._open;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get _Str_23003(): number
|
||||||
|
{
|
||||||
|
if(this.type == OfficialRoomEntryData._Str_14955)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if(this.type == OfficialRoomEntryData._Str_12025)
|
||||||
|
{
|
||||||
|
return this._Str_2567.maxUserCount;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,104 @@
|
|||||||
|
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||||
|
|
||||||
|
export class RoomEventData
|
||||||
|
{
|
||||||
|
private _adId:number;
|
||||||
|
private _ownerAvatarId:number;
|
||||||
|
private _ownerAvatarName:string;
|
||||||
|
private _flatId:number;
|
||||||
|
private _categoryId:number;
|
||||||
|
private _eventType:number;
|
||||||
|
private _eventName:string;
|
||||||
|
private _eventDescription:string;
|
||||||
|
private _creationTime:string;
|
||||||
|
private _expirationDate:Date;
|
||||||
|
private _disposed:boolean;
|
||||||
|
|
||||||
|
constructor(k:IMessageDataWrapper)
|
||||||
|
{
|
||||||
|
this._adId = k.readInt();
|
||||||
|
this._ownerAvatarId = k.readInt();
|
||||||
|
this._ownerAvatarName = k.readString();
|
||||||
|
this._flatId = k.readInt();
|
||||||
|
this._eventType = k.readInt();
|
||||||
|
this._eventName = k.readString();
|
||||||
|
this._eventDescription = k.readString();
|
||||||
|
const _local_2 = k.readInt();
|
||||||
|
const _local_3 = k.readInt();
|
||||||
|
const _local_4:Date = new Date();
|
||||||
|
let _local_5 = _local_4.getTime();
|
||||||
|
const _local_6 = ((_local_2 * 60) * 1000);
|
||||||
|
_local_5 = (_local_5 - _local_6);
|
||||||
|
const _local_7:Date = new Date(_local_5);
|
||||||
|
this._creationTime = ((((((((_local_7.getDate() + '-') + _local_7.getMonth()) + '-') + _local_7.getFullYear()) + ' ') + _local_7.getHours()) + ':') + _local_7.getMinutes());
|
||||||
|
let _local_8 = _local_4.getTime();
|
||||||
|
const _local_9 = ((_local_3 * 60) * 1000);
|
||||||
|
_local_8 = (_local_8 + _local_9);
|
||||||
|
this._expirationDate = new Date(_local_8);
|
||||||
|
this._categoryId = k.readInt();
|
||||||
|
}
|
||||||
|
|
||||||
|
public dispose():void
|
||||||
|
{
|
||||||
|
if(this._disposed)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this._disposed = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get disposed():boolean
|
||||||
|
{
|
||||||
|
return this._disposed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get adId():number
|
||||||
|
{
|
||||||
|
return this._adId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get ownerAvatarId():number
|
||||||
|
{
|
||||||
|
return this._ownerAvatarId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get ownerAvatarName():string
|
||||||
|
{
|
||||||
|
return this._ownerAvatarName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get flatId():number
|
||||||
|
{
|
||||||
|
return this._flatId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get categoryId():number
|
||||||
|
{
|
||||||
|
return this._categoryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get eventType():number
|
||||||
|
{
|
||||||
|
return this._eventType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get eventName():string
|
||||||
|
{
|
||||||
|
return this._eventName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get eventDescription():string
|
||||||
|
{
|
||||||
|
return this._eventDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get creationTime():string
|
||||||
|
{
|
||||||
|
return this._creationTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public get expirationDate():Date
|
||||||
|
{
|
||||||
|
return this._expirationDate;
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,8 @@
|
|||||||
|
export * from './CategoriesWithVisitorCountData';
|
||||||
|
export * from './CompetitionRoomsData';
|
||||||
export * from './NavigatorSavedSearch';
|
export * from './NavigatorSavedSearch';
|
||||||
export * from './NavigatorSearchResultList';
|
export * from './NavigatorSearchResultList';
|
||||||
export * from './NavigatorSearchResultSet';
|
export * from './NavigatorSearchResultSet';
|
||||||
export * from './NavigatorTopLevelContext';
|
export * from './NavigatorTopLevelContext';
|
||||||
|
export * from './OfficialRoomEntryData';
|
||||||
|
export * from './RoomEventData';
|
||||||
|
@ -1,3 +1 @@
|
|||||||
export * from './RoomDoorbellAcceptedParser';
|
export * from './RoomDoorbellAcceptedParser';
|
||||||
export * from './RoomDoorbellParser';
|
|
||||||
export * from './RoomDoorbellRejectedParser';
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
export * from './RoomChatSettingsParser';
|
export * from './RoomChatSettingsParser';
|
||||||
export * from './RoomDataParser';
|
export * from './RoomDataParser';
|
||||||
export * from './RoomEntryInfoMessageParser';
|
export * from './RoomEntryInfoMessageParser';
|
||||||
export * from './RoomInfoParser';
|
|
||||||
export * from './RoomScoreParser';
|
export * from './RoomScoreParser';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
export * from './FavoriteMembershipUpdateMessageParser';
|
export * from './FavoriteMembershipUpdateMessageParser';
|
||||||
export * from './ObjectsDataUpdateParser';
|
export * from './ObjectsDataUpdateParser';
|
||||||
export * from './ObjectsRollingParser';
|
export * from './ObjectsRollingParser';
|
||||||
export * from './RoomCreatedParser';
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { IConnection } from '../../../core/communication/connections/IConnection';
|
import { IConnection } from '../../../core/communication/connections/IConnection';
|
||||||
import { GetGuestRoomResultEvent } from '../../communication/messages/incoming/room/data/GetGuestRoomResultEvent';
|
import { GetGuestRoomResultEvent } from '../../communication/messages/incoming/navigator/GetGuestRoomResultEvent';
|
||||||
import { RoomSessionEvent } from '../events/RoomSessionEvent';
|
import { RoomSessionEvent } from '../events/RoomSessionEvent';
|
||||||
import { RoomSessionPropertyUpdateEvent } from '../events/RoomSessionPropertyUpdateEvent';
|
import { RoomSessionPropertyUpdateEvent } from '../events/RoomSessionPropertyUpdateEvent';
|
||||||
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
import { IRoomHandlerListener } from '../IRoomHandlerListener';
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user