mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +01:00
Organize all incoming catalog packets
This commit is contained in:
parent
49e1336e9d
commit
b59cb84865
@ -1,6 +1,6 @@
|
||||
import { IMessageEvent } from '../../core';
|
||||
import { INitroManager } from '../../core/common/INitroManager';
|
||||
import { IConnection } from '../../core/communication/connections/IConnection';
|
||||
import { IMessageEvent } from '../../core/communication/messages/IMessageEvent';
|
||||
import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo';
|
||||
|
||||
export interface INitroCommunicationManager extends INitroManager
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { IMessageEvent } from '../../core';
|
||||
import { NitroManager } from '../../core/common/NitroManager';
|
||||
import { IConnection } from '../../core/communication/connections/IConnection';
|
||||
import { IConnectionStateListener } from '../../core/communication/connections/IConnectionStateListener';
|
||||
import { SocketConnectionEvent } from '../../core/communication/events/SocketConnectionEvent';
|
||||
import { ICommunicationManager } from '../../core/communication/ICommunicationManager';
|
||||
import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration';
|
||||
import { IMessageEvent } from '../../core/communication/messages/IMessageEvent';
|
||||
import { NitroEvent } from '../../core/events/NitroEvent';
|
||||
import { Nitro } from '../Nitro';
|
||||
import { NitroCommunicationDemo } from './demo/NitroCommunicationDemo';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration';
|
||||
import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, AvailabilityTimeMessageEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, CatalogApproveNameResultEvent, ChangeUserNameResultMessageEvent, CheckUserNameResultMessageEvent, ClubGiftNotificationEvent, FigureUpdateEvent, FurnitureGuildInfoComposer, GetBonusRareInfoMessageComposer, GetJukeboxPlayListMessageComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetUserSongDisksMessageComposer, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, MaintenanceStatusMessageEvent, MysteryBoxKeysEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, RoomAdErrorEvent, RoomUnitGiveHandItemPetComposer, SellablePetPalettesEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, WardrobeMessageEvent } from './messages';
|
||||
import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, ApproveNameMessageEvent, AvailabilityTimeMessageEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, BuildersClubFurniCountMessageEvent, BuildersClubSubscriptionStatusMessageEvent, BundleDiscountRulesetMessageEvent, ChangeUserNameResultMessageEvent, CheckUserNameResultMessageEvent, ClubGiftNotificationEvent, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, FurnitureGuildInfoComposer, GetBonusRareInfoMessageComposer, GetJukeboxPlayListMessageComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetUserSongDisksMessageComposer, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomUnitGiveHandItemPetComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, WardrobeMessageEvent } from './messages';
|
||||
import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent';
|
||||
import { CfhSanctionMessageEvent, CfhTopicsInitEvent, SanctionStatusEvent } from './messages/incoming/callforhelp';
|
||||
import { CameraPublishStatusMessageEvent } from './messages/incoming/camera/CameraPublishStatusMessageEvent';
|
||||
@ -9,28 +9,13 @@ import { CompetitionStatusMessageEvent } from './messages/incoming/camera/Compet
|
||||
import { InitCameraMessageEvent } from './messages/incoming/camera/InitCameraMessageEvent';
|
||||
import { ThumbnailStatusMessageEvent } from './messages/incoming/camera/ThumbnailStatusMessageEvent';
|
||||
import { CampaignCalendarDataMessageEvent, CampaignCalendarDoorOpenedMessageEvent } from './messages/incoming/campaign';
|
||||
import { CatalogClubEvent } from './messages/incoming/catalog/CatalogClubEvent';
|
||||
import { CatalogClubGiftsEvent } from './messages/incoming/catalog/CatalogClubGiftsEvent';
|
||||
import { CatalogGiftConfigurationEvent } from './messages/incoming/catalog/CatalogGiftConfigurationEvent';
|
||||
import { CatalogGiftUsernameUnavailableEvent } from './messages/incoming/catalog/CatalogGiftUsernameUnavailableEvent';
|
||||
import { CatalogGroupsEvent } from './messages/incoming/catalog/CatalogGroupsEvent';
|
||||
import { CatalogModeEvent } from './messages/incoming/catalog/CatalogModeEvent';
|
||||
import { CatalogPageEvent } from './messages/incoming/catalog/CatalogPageEvent';
|
||||
import { CatalogPagesEvent } from './messages/incoming/catalog/CatalogPagesEvent';
|
||||
import { CatalogPurchaseEvent } from './messages/incoming/catalog/CatalogPurchaseEvent';
|
||||
import { CatalogPurchaseFailedEvent } from './messages/incoming/catalog/CatalogPurchaseFailedEvent';
|
||||
import { CatalogPurchaseUnavailableEvent } from './messages/incoming/catalog/CatalogPurchaseUnavailableEvent';
|
||||
import { CatalogRedeemVoucherErrorEvent } from './messages/incoming/catalog/CatalogRedeemVoucherErrorEvent';
|
||||
import { CatalogRedeemVoucherOkEvent } from './messages/incoming/catalog/CatalogRedeemVoucherOkEvent';
|
||||
import { CatalogSearchEvent } from './messages/incoming/catalog/CatalogSearchEvent';
|
||||
import { CatalogSoldOutEvent } from './messages/incoming/catalog/CatalogSoldOutEvent';
|
||||
import { CatalogUpdatedEvent } from './messages/incoming/catalog/CatalogUpdatedEvent';
|
||||
import { CatalogPageExpirationEvent, CatalogPageMessageEvent, CatalogPagesListEvent, CatalogPageWithEarliestExpiryMessageEvent, CatalogPublishedMessageEvent, ClubGiftInfoEvent, ClubGiftSelectedEvent, GiftReceiverNotFoundEvent, GiftWrappingConfigurationEvent, HabboClubOffersMessageEvent, LimitedEditionSoldOutEvent, ProductOfferEvent, PurchaseErrorMessageEvent, PurchaseNotAllowedMessageEvent, PurchaseOKMessageEvent, VoucherRedeemErrorMessageEvent, VoucherRedeemOkMessageEvent } from './messages/incoming/catalog';
|
||||
import { MarketplaceBuyOfferResultEvent } from './messages/incoming/catalog/marketplace/MarketplaceBuyOfferResultEvent';
|
||||
import { MarketplaceCancelItemEvent } from './messages/incoming/catalog/marketplace/MarketplaceCancelItemEvent';
|
||||
import { MarketplaceConfigEvent } from './messages/incoming/catalog/marketplace/MarketplaceConfigEvent';
|
||||
import { MarketplaceItemStatsEvent } from './messages/incoming/catalog/marketplace/MarketplaceItemStatsEvent';
|
||||
import { MarketplaceOffersReceivedEvent } from './messages/incoming/catalog/marketplace/MarketplaceOffersReceivedEvent';
|
||||
import { MarketplaceOwnItemsEvent } from './messages/incoming/catalog/marketplace/MarketplaceOwnItemsEvent';
|
||||
import { MarketplaceConfigEvent } from './messages/incoming/catalog/MarketplaceConfigEvent';
|
||||
import { MarketplaceItemStatsEvent } from './messages/incoming/catalog/MarketplaceItemStatsEvent';
|
||||
import { ClientPingEvent } from './messages/incoming/client/ClientPingEvent';
|
||||
import { CraftableProductsEvent } from './messages/incoming/crafting/CraftableProductsEvent';
|
||||
import { CraftingRecipeEvent } from './messages/incoming/crafting/CraftingRecipeEvent';
|
||||
@ -220,6 +205,7 @@ import { UserInfoEvent } from './messages/incoming/user/data/UserInfoEvent';
|
||||
import { UserNameChangeMessageEvent } from './messages/incoming/user/data/UserNameChangeMessageEvent';
|
||||
import { UserProfileEvent } from './messages/incoming/user/data/UserProfileEvent';
|
||||
import { UserSettingsEvent } from './messages/incoming/user/data/UserSettingsEvent';
|
||||
import { GuildMembershipsMessageEvent } from './messages/incoming/user/GuildMembershipsMessageEvent';
|
||||
import { IgnoredUsersEvent } from './messages/incoming/user/IgnoredUsersEvent';
|
||||
import { IgnoreResultEvent } from './messages/incoming/user/IgnoreResultEvent';
|
||||
import { InClientLinkEvent } from './messages/incoming/user/InClientLinkEvent';
|
||||
@ -505,24 +491,41 @@ export class NitroMessages implements IMessageConfiguration
|
||||
this._events.set(IncomingHeader.CAMPAIGN_CALENDAR_DOOR_OPENED, CampaignCalendarDoorOpenedMessageEvent);
|
||||
|
||||
// CATALOG
|
||||
this._events.set(IncomingHeader.CATALOG_CLUB, CatalogClubEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_MODE, CatalogModeEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PAGE, CatalogPageEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PAGES, CatalogPagesEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PURCHASE, CatalogPurchaseEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PURCHASE_FAILED, CatalogPurchaseFailedEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PURCHASE_UNAVAILABLE, CatalogPurchaseUnavailableEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_SEARCH, CatalogSearchEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_SOLD_OUT, CatalogSoldOutEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_UPDATED, CatalogUpdatedEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_CLUB_GIFTS, CatalogClubGiftsEvent);
|
||||
this._events.set(IncomingHeader.GROUP_LIST, CatalogGroupsEvent);
|
||||
this._events.set(IncomingHeader.GIFT_CONFIG, CatalogGiftConfigurationEvent);
|
||||
this._events.set(IncomingHeader.REDEEM_VOUCHER_ERROR, CatalogRedeemVoucherErrorEvent);
|
||||
this._events.set(IncomingHeader.REDEEM_VOUCHER_OK, CatalogRedeemVoucherOkEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_RECEIVE_PET_BREEDS, SellablePetPalettesEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_APPROVE_NAME_RESULT, CatalogApproveNameResultEvent);
|
||||
this._events.set(IncomingHeader.BONUS_RARE_INFO, BonusRareInfoMessageEvent);
|
||||
this._events.set(IncomingHeader.BUILDERS_CLUB_FURNI_COUNT, BuildersClubFurniCountMessageEvent);
|
||||
this._events.set(IncomingHeader.BUILDERS_CLUB_SUBSCRIPTION, BuildersClubSubscriptionStatusMessageEvent);
|
||||
this._events.set(IncomingHeader.BUNDLE_DISCOUNT_RULESET, BundleDiscountRulesetMessageEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PAGE_EXPIRATION, CatalogPageExpirationEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PAGE, CatalogPageMessageEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PAGE_LIST, CatalogPagesListEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_EARLIEST_EXPIRY, CatalogPageWithEarliestExpiryMessageEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PUBLISHED, CatalogPublishedMessageEvent);
|
||||
this._events.set(IncomingHeader.CLUB_GIFT_INFO, ClubGiftInfoEvent);
|
||||
this._events.set(IncomingHeader.CLUB_GIFT_SELECTED, ClubGiftSelectedEvent);
|
||||
this._events.set(IncomingHeader.DIRECT_SMS_CLUB_BUY, DirectSMSClubBuyAvailableMessageEvent);
|
||||
this._events.set(IncomingHeader.GIFT_RECEIVER_NOT_FOUND, GiftReceiverNotFoundEvent);
|
||||
this._events.set(IncomingHeader.GIFT_WRAPPER_CONFIG, GiftWrappingConfigurationEvent);
|
||||
this._events.set(IncomingHeader.CLUB_EXTENDED_OFFER, HabboClubExtendOfferMessageEvent);
|
||||
this._events.set(IncomingHeader.CLUB_OFFERS, HabboClubOffersMessageEvent);
|
||||
this._events.set(IncomingHeader.IS_OFFER_GIFTABLE, IsOfferGiftableMessageEvent);
|
||||
this._events.set(IncomingHeader.LIMITED_SOLD_OUT, LimitedEditionSoldOutEvent);
|
||||
this._events.set(IncomingHeader.LIMITED_OFFER_APPEARING_NEXT, LimitedOfferAppearingNextMessageEvent);
|
||||
this._events.set(IncomingHeader.NOT_ENOUGH_BALANCE, NotEnoughBalanceMessageEvent);
|
||||
this._events.set(IncomingHeader.PRODUCT_OFFER, ProductOfferEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PURCHASE_ERROR, PurchaseErrorMessageEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PURCHASE_NOT_ALLOWED, PurchaseNotAllowedMessageEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_PURCHASE_OK, PurchaseOKMessageEvent);
|
||||
this._events.set(IncomingHeader.ROOM_AD_PURCHASE, RoomAdPurchaseInfoEvent);
|
||||
this._events.set(IncomingHeader.SEASONAL_CALENDAR_OFFER, SeasonalCalendarDailyOfferMessageEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_RECEIVE_PET_BREEDS, SellablePetPalettesMessageEvent);
|
||||
this._events.set(IncomingHeader.TARGET_OFFER, TargetedOfferEvent);
|
||||
this._events.set(IncomingHeader.TARGET_OFFER_NOT_FOUND, TargetedOfferNotFoundEvent);
|
||||
this._events.set(IncomingHeader.REDEEM_VOUCHER_ERROR, VoucherRedeemErrorMessageEvent);
|
||||
this._events.set(IncomingHeader.REDEEM_VOUCHER_OK, VoucherRedeemOkMessageEvent);
|
||||
|
||||
|
||||
this._events.set(IncomingHeader.GROUP_LIST, GuildMembershipsMessageEvent);
|
||||
this._events.set(IncomingHeader.CATALOG_APPROVE_NAME_RESULT, ApproveNameMessageEvent);
|
||||
|
||||
// CLIENT
|
||||
this._events.set(IncomingHeader.CLIENT_PING, ClientPingEvent);
|
||||
@ -767,7 +770,6 @@ export class NitroMessages implements IMessageConfiguration
|
||||
this._events.set(IncomingHeader.GIFT_OPENED, PresentOpenedMessageEvent);
|
||||
|
||||
// INVENTORY
|
||||
this._events.set(IncomingHeader.GIFT_RECEIVER_NOT_FOUND, CatalogGiftUsernameUnavailableEvent);
|
||||
|
||||
// BOTS
|
||||
this._events.set(IncomingHeader.USER_BOTS, BotInventoryMessageEvent);
|
||||
|
@ -5,23 +5,22 @@ export class IncomingHeader
|
||||
public static AUTHENTICATION = -1;
|
||||
public static AVAILABILITY_STATUS = 2033;
|
||||
public static BUILDERS_CLUB_EXPIRED = 1452;
|
||||
public static CATALOG_CLUB = 2405;
|
||||
public static CATALOG_MODE = 3828;
|
||||
public static CLUB_OFFERS = 2405;
|
||||
public static CATALOG_PAGE = 804;
|
||||
public static CATALOG_PAGES = 1032;
|
||||
public static CATALOG_PURCHASE = 869;
|
||||
public static CATALOG_PURCHASE_FAILED = 1404;
|
||||
public static CATALOG_PURCHASE_UNAVAILABLE = 3770;
|
||||
public static CATALOG_SEARCH = 3388;
|
||||
public static CATALOG_SOLD_OUT = 377;
|
||||
public static CATALOG_UPDATED = 1866;
|
||||
public static CATALOG_PAGE_LIST = 1032;
|
||||
public static CATALOG_PURCHASE_OK = 869;
|
||||
public static CATALOG_PURCHASE_ERROR = 1404;
|
||||
public static CATALOG_PURCHASE_NOT_ALLOWED = 3770;
|
||||
public static PRODUCT_OFFER = 3388;
|
||||
public static LIMITED_SOLD_OUT = 377;
|
||||
public static CATALOG_PUBLISHED = 1866;
|
||||
public static CFH_RESULT_MESSAGE = 934;
|
||||
public static CLIENT_LATENCY = 10;
|
||||
public static CLIENT_PING = 3928;
|
||||
public static DESKTOP_CAMPAIGN = 1745;
|
||||
public static DESKTOP_NEWS = 286;
|
||||
public static DESKTOP_VIEW = 122;
|
||||
public static DISCOUNT_CONFIG = 2347;
|
||||
public static BUNDLE_DISCOUNT_RULESET = 2347;
|
||||
public static FIRST_LOGIN_OF_DAY = 793;
|
||||
public static FURNITURE_ALIASES = 1723;
|
||||
public static FURNITURE_DATA = 2547;
|
||||
@ -37,7 +36,7 @@ export class IncomingHeader
|
||||
public static GENERIC_ALERT = 3801;
|
||||
public static MODERATOR_MESSAGE = 2030;
|
||||
public static GENERIC_ERROR = 1600;
|
||||
public static GIFT_CONFIG = 2234;
|
||||
public static GIFT_WRAPPER_CONFIG = 2234;
|
||||
public static GROUP_BADGES = 2402;
|
||||
public static GROUP_CREATE_OPTIONS = 2159;
|
||||
public static GROUP_FORUM_INFO = 3011;
|
||||
@ -227,7 +226,7 @@ export class IncomingHeader
|
||||
public static USER_EFFECT_LIST_ADD = 2867;
|
||||
public static USER_EFFECT_LIST_REMOVE = 2228;
|
||||
public static USER_EFFECT_ACTIVATE = 1959;
|
||||
public static CATALOG_CLUB_GIFTS = 619;
|
||||
public static CLUB_GIFT_INFO = 619;
|
||||
public static REDEEM_VOUCHER_ERROR = 714;
|
||||
public static REDEEM_VOUCHER_OK = 3336;
|
||||
public static MODTOOL_VISITED_ROOMS_USER = 1752;
|
||||
@ -294,4 +293,18 @@ export class IncomingHeader
|
||||
public static CFH_SANCTION_STATUS = 2221;
|
||||
public static CAMPAIGN_CALENDAR_DATA = 2531;
|
||||
public static CAMPAIGN_CALENDAR_DOOR_OPENED = 2551;
|
||||
public static BUILDERS_CLUB_FURNI_COUNT = 3828;
|
||||
public static BUILDERS_CLUB_SUBSCRIPTION = 1452;
|
||||
public static CATALOG_PAGE_EXPIRATION = 2668;
|
||||
public static CATALOG_EARLIEST_EXPIRY = 2515;
|
||||
public static CLUB_GIFT_SELECTED = 659;
|
||||
public static TARGET_OFFER_NOT_FOUND = 1237;
|
||||
public static TARGET_OFFER = 119;
|
||||
public static DIRECT_SMS_CLUB_BUY = 195;
|
||||
public static ROOM_AD_PURCHASE = 2468;
|
||||
public static NOT_ENOUGH_BALANCE = 3914;
|
||||
public static LIMITED_OFFER_APPEARING_NEXT = 44;
|
||||
public static IS_OFFER_GIFTABLE = 761;
|
||||
public static CLUB_EXTENDED_OFFER = 3964;
|
||||
public static SEASONAL_CALENDAR_OFFER = 1889;
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { InterstitialMessageParser } from '../../parser';
|
||||
|
||||
export class InterstitialMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { RoomAdErrorMessageParser } from '../../parser';
|
||||
|
||||
export class RoomAdErrorEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { AvailabilityStatusMessageParser } from '../../parser/availability/AvailabilityStatusMessageParser';
|
||||
|
||||
export class AvailabilityStatusMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { AvailabilityTimeMessageParser } from '../../parser';
|
||||
|
||||
export class AvailabilityTimeMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { HotelClosedAndOpensMessageParser } from '../../parser';
|
||||
|
||||
export class HotelClosedAndOpensEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { HotelClosesAndWillOpenAtMessageParser } from '../../parser';
|
||||
|
||||
export class HotelClosesAndWillOpenAtEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { HotelWillCloseInMinutesMessageParser } from '../../parser';
|
||||
|
||||
export class HotelWillCloseInMinutesEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { MaintenanceStatusMessageParser } from '../../parser';
|
||||
|
||||
export class MaintenanceStatusMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { ChangeUserNameResultMessageParser } from '../../parser/avatar/ChangeUserNameResultMessageParser';
|
||||
|
||||
export class ChangeUserNameResultMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CheckUserNameResultMessageParser } from '../../parser/avatar/CheckUserNameResultMessageParser';
|
||||
|
||||
export class CheckUserNameResultMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { FigureUpdateParser } from '../../parser';
|
||||
|
||||
export class FigureUpdateEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { WardrobeMessageParser } from '../../parser';
|
||||
|
||||
export class WardrobeMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CfhSanctionMessageParser } from '../../parser/callforhelp/CfhSanctionMessageParser';
|
||||
|
||||
export class CfhSanctionMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CfhTopicsInitMessageParser } from '../../parser/callforhelp/CfhTopicsInitMessageParser';
|
||||
|
||||
export class CfhTopicsInitEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { SanctionStatusMessageParser } from '../../parser/callforhelp';
|
||||
|
||||
export class SanctionStatusEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CameraPublishStatusMessageParser } from '../../parser/camera/CameraPublishStatusMessageParser';
|
||||
|
||||
export class CameraPublishStatusMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CameraPurchaseOKMessageParser } from '../../parser/camera/CameraPurchaseOKMessageParser';
|
||||
|
||||
export class CameraPurchaseOKMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CameraStorageUrlMessageParser } from '../../parser/camera/CameraStorageUrlMessageParser';
|
||||
|
||||
export class CameraStorageUrlMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CompetitionStatusMessageParser } from '../../parser/camera/CompetitionStatusMessageParser';
|
||||
|
||||
export class CompetitionStatusMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { InitCameraMessageParser } from '../../parser/camera/InitCameraMessageParser';
|
||||
|
||||
export class InitCameraMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { ThumbnailStatusMessageParser } from '../../parser/camera/ThumbnailStatusMessageParser';
|
||||
|
||||
export class ThumbnailStatusMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CampaignCalendarDataMessageParser } from '../../parser/campaign';
|
||||
|
||||
export class CampaignCalendarDataMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CampaignCalendarDoorOpenedMessageParser } from '../../parser/campaign';
|
||||
|
||||
export class CampaignCalendarDoorOpenedMessageEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { BonusRareInfoMessageParser } from '../../parser/catalog/BonusRareInfoMessageParser';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { BonusRareInfoMessageParser } from '../../parser';
|
||||
|
||||
export class BonusRareInfoMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { BuildersClubFurniCountMessageParser } from '../../parser';
|
||||
|
||||
export class BuildersClubFurniCountMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, BuildersClubFurniCountMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): BuildersClubFurniCountMessageParser
|
||||
{
|
||||
return this.parser as BuildersClubFurniCountMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { BuildersClubSubscriptionStatusMessageParser } from '../../parser';
|
||||
|
||||
export class BuildersClubSubscriptionStatusMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, BuildersClubSubscriptionStatusMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): BuildersClubSubscriptionStatusMessageParser
|
||||
{
|
||||
return this.parser as BuildersClubSubscriptionStatusMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
|
||||
export class BundleDiscountRuleset
|
||||
{
|
||||
private _Str_20535: number;
|
||||
private _Str_19937: number;
|
||||
private _Str_20951: number;
|
||||
private _Str_20460: number;
|
||||
private _Str_16144: number[];
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
this._Str_20535 = wrapper.readInt();
|
||||
this._Str_19937 = wrapper.readInt();
|
||||
this._Str_20951 = wrapper.readInt();
|
||||
this._Str_20460 = wrapper.readInt();
|
||||
this._Str_16144 = [];
|
||||
|
||||
let count = wrapper.readInt();
|
||||
|
||||
while(count > 0)
|
||||
{
|
||||
this._Str_16144.push(wrapper.readInt());
|
||||
|
||||
count--;
|
||||
}
|
||||
}
|
||||
|
||||
public get _Str_22802(): number
|
||||
{
|
||||
return this._Str_20535;
|
||||
}
|
||||
|
||||
public get _Str_9227(): number
|
||||
{
|
||||
return this._Str_19937;
|
||||
}
|
||||
|
||||
public get _Str_23802(): number
|
||||
{
|
||||
return this._Str_20951;
|
||||
}
|
||||
|
||||
public get _Str_21500(): number
|
||||
{
|
||||
return this._Str_20460;
|
||||
}
|
||||
|
||||
public get _Str_25155(): number[]
|
||||
{
|
||||
return this._Str_16144;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { BundleDiscountRulesetMessageParser } from '../../parser';
|
||||
|
||||
export class BundleDiscountRulesetMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, BundleDiscountRulesetMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): BundleDiscountRulesetMessageParser
|
||||
{
|
||||
return this.parser as BundleDiscountRulesetMessageParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogApproveNameResultParser } from '../../parser';
|
||||
|
||||
export class CatalogApproveNameResultEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogApproveNameResultParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogApproveNameResultParser
|
||||
{
|
||||
return this.parser as CatalogApproveNameResultParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogClubParser } from '../../parser/catalog/CatalogClubParser';
|
||||
|
||||
export class CatalogClubEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogClubParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogClubParser
|
||||
{
|
||||
return this.parser as CatalogClubParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { ClubGiftInfoParser } from '../../parser/catalog/ClubGiftInfoParser';
|
||||
|
||||
export class CatalogClubGiftsEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, ClubGiftInfoParser);
|
||||
}
|
||||
|
||||
public getParser(): ClubGiftInfoParser
|
||||
{
|
||||
return this.parser as ClubGiftInfoParser;
|
||||
}
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogPagesParser } from '../../parser/catalog/CatalogPagesParser';
|
||||
import { CatalogGiftConfigurationParser } from '../../parser/catalog/CatalogGiftConfigurationParser';
|
||||
|
||||
export class CatalogGiftConfigurationEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogGiftConfigurationParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogGiftConfigurationParser
|
||||
{
|
||||
return this.parser as CatalogGiftConfigurationParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogGiftUsernameUnavailableParser } from '../../parser/catalog/CatalogGiftUsernameUnavailableParser';
|
||||
|
||||
export class CatalogGiftUsernameUnavailableEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogGiftUsernameUnavailableParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogGiftUsernameUnavailableParser
|
||||
{
|
||||
return this.parser as CatalogGiftUsernameUnavailableParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogGroupsParser } from '../../parser/catalog/CatalogGroupsParser';
|
||||
|
||||
export class CatalogGroupsEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogGroupsParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogGroupsParser
|
||||
{
|
||||
return this.parser as CatalogGroupsParser;
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||
import { ICatalogLocalizationData } from './ICatalogLocalizationData';
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
import { ICatalogLocalizationData } from '../../parser/catalog/utils/ICatalogLocalizationData';
|
||||
|
||||
export class CatalogLocalizationData implements ICatalogLocalizationData
|
||||
{
|
||||
@ -8,23 +8,8 @@ export class CatalogLocalizationData implements ICatalogLocalizationData
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
if(!wrapper) throw new Error('invalid_wrapper');
|
||||
|
||||
this.flush();
|
||||
this.parse(wrapper);
|
||||
}
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._images = [];
|
||||
this._texts = [];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
this._images = [];
|
||||
this._texts = [];
|
||||
|
||||
let totalImages = wrapper.readInt();
|
||||
|
||||
@ -43,8 +28,6 @@ export class CatalogLocalizationData implements ICatalogLocalizationData
|
||||
|
||||
totalTexts--;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get images(): string[]
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogModeParser } from '../../parser/catalog/CatalogModeParser';
|
||||
|
||||
export class CatalogModeEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogModeParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogModeParser
|
||||
{
|
||||
return this.parser as CatalogModeParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogPageParser } from '../../parser/catalog/CatalogPageParser';
|
||||
|
||||
export class CatalogPageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogPageParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogPageParser
|
||||
{
|
||||
return this.parser as CatalogPageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CatalogPageExpirationParser } from '../../parser';
|
||||
|
||||
export class CatalogPageExpirationEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogPageExpirationParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogPageExpirationParser
|
||||
{
|
||||
return this.parser as CatalogPageExpirationParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CatalogPageMessageParser } from '../../parser/catalog/CatalogPageMessageParser';
|
||||
|
||||
export class CatalogPageMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogPageMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogPageMessageParser
|
||||
{
|
||||
return this.parser as CatalogPageMessageParser;
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||
import { CatalogProductOfferData } from './CatalogProductOfferData';
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
import { CatalogPageMessageProductData } from './CatalogPageMessageProductData';
|
||||
|
||||
export class CatalogPageOfferData
|
||||
export class CatalogPageMessageOfferData
|
||||
{
|
||||
private _offerId: number;
|
||||
private _localizationId: string;
|
||||
@ -14,38 +14,10 @@ export class CatalogPageOfferData
|
||||
private _bundlePurchaseAllowed: boolean;
|
||||
private _isPet: boolean;
|
||||
private _previewImage: string;
|
||||
private _products: CatalogProductOfferData[];
|
||||
private _products: CatalogPageMessageProductData[];
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
if(!wrapper) throw new Error('invalid_wrapper');
|
||||
|
||||
this.flush();
|
||||
this.parse(wrapper);
|
||||
}
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._offerId = -1;
|
||||
this._localizationId = null;
|
||||
this._rent = false;
|
||||
this._priceCredits = 0;
|
||||
this._priceActivityPoints = 0;
|
||||
this._priceActivityPointsType = 0;
|
||||
this._clubLevel = 0;
|
||||
this._giftable = false;
|
||||
this._bundlePurchaseAllowed = false;
|
||||
this._isPet = false;
|
||||
this._previewImage = null;
|
||||
this._products = [];
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._offerId = wrapper.readInt();
|
||||
this._localizationId = wrapper.readString();
|
||||
this._rent = wrapper.readBoolean();
|
||||
@ -54,11 +26,13 @@ export class CatalogPageOfferData
|
||||
this._priceActivityPointsType = wrapper.readInt();
|
||||
this._giftable = wrapper.readBoolean();
|
||||
|
||||
this._products = [];
|
||||
|
||||
let totalProducts = wrapper.readInt();
|
||||
|
||||
while(totalProducts > 0)
|
||||
{
|
||||
this._products.push(new CatalogProductOfferData(wrapper));
|
||||
this._products.push(new CatalogPageMessageProductData(wrapper));
|
||||
|
||||
totalProducts--;
|
||||
}
|
||||
@ -67,8 +41,6 @@ export class CatalogPageOfferData
|
||||
this._bundlePurchaseAllowed = wrapper.readBoolean();
|
||||
this._isPet = wrapper.readBoolean();
|
||||
this._previewImage = wrapper.readString();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get offerId(): number
|
||||
@ -126,7 +98,7 @@ export class CatalogPageOfferData
|
||||
return this._previewImage;
|
||||
}
|
||||
|
||||
public get products(): CatalogProductOfferData[]
|
||||
public get products(): CatalogPageMessageProductData[]
|
||||
{
|
||||
return this._products;
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
|
||||
export class CatalogProductOfferData
|
||||
export class CatalogPageMessageProductData
|
||||
{
|
||||
public static I: string = 'i';
|
||||
public static S: string = 's';
|
||||
@ -42,7 +42,7 @@ export class CatalogProductOfferData
|
||||
|
||||
switch(this._productType)
|
||||
{
|
||||
case CatalogProductOfferData.B:
|
||||
case CatalogPageMessageProductData.B:
|
||||
this._extraParam = wrapper.readString();
|
||||
this._productCount = 1;
|
||||
return true;
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CatalogPageWithEarliestExpiryMessageParser } from '../../parser';
|
||||
|
||||
export class CatalogPageWithEarliestExpiryMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogPageWithEarliestExpiryMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogPageWithEarliestExpiryMessageParser
|
||||
{
|
||||
return this.parser as CatalogPageWithEarliestExpiryMessageParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogPagesParser } from '../../parser/catalog/CatalogPagesParser';
|
||||
|
||||
export class CatalogPagesEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogPagesParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogPagesParser
|
||||
{
|
||||
return this.parser as CatalogPagesParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CatalogIndexMessageParser } from '../../parser';
|
||||
|
||||
export class CatalogPagesListEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogIndexMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogIndexMessageParser
|
||||
{
|
||||
return this.parser as CatalogIndexMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CatalogPublishedMessageParser } from '../../parser/catalog/CatalogPublishedMessageParser';
|
||||
|
||||
export class CatalogPublishedMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogPublishedMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogPublishedMessageParser
|
||||
{
|
||||
return this.parser as CatalogPublishedMessageParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogPurchaseParser } from '../../parser/catalog/CatalogPurchaseParser';
|
||||
|
||||
export class CatalogPurchaseEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogPurchaseParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogPurchaseParser
|
||||
{
|
||||
return this.parser as CatalogPurchaseParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogPurchaseFailedParser } from '../../parser/catalog/CatalogPurchaseFailedParser';
|
||||
|
||||
export class CatalogPurchaseFailedEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogPurchaseFailedParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogPurchaseFailedParser
|
||||
{
|
||||
return this.parser as CatalogPurchaseFailedParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogPurchaseUnavailableParser } from '../../parser/catalog/CatalogPurchaseUnavailableParser';
|
||||
|
||||
export class CatalogPurchaseUnavailableEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogPurchaseUnavailableParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogPurchaseUnavailableParser
|
||||
{
|
||||
return this.parser as CatalogPurchaseUnavailableParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogRedeemVoucherErrorParser } from '../../parser/catalog/CatalogRedeemVoucherErrorParser';
|
||||
|
||||
export class CatalogRedeemVoucherErrorEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogRedeemVoucherErrorParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogRedeemVoucherErrorParser
|
||||
{
|
||||
return this.parser as CatalogRedeemVoucherErrorParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogRedeemVoucherOkParser } from '../../parser/catalog/CatalogRedeemVoucherOkParser';
|
||||
|
||||
export class CatalogRedeemVoucherOkEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogRedeemVoucherOkParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogRedeemVoucherOkParser
|
||||
{
|
||||
return this.parser as CatalogRedeemVoucherOkParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogSearchParser } from '../../parser/catalog/CatalogSearchParser';
|
||||
|
||||
export class CatalogSearchEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogSearchParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogSearchParser
|
||||
{
|
||||
return this.parser as CatalogSearchParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogSoldOutParser } from '../../parser/catalog/CatalogSoldOutParser';
|
||||
|
||||
export class CatalogSoldOutEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogSoldOutParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogSoldOutParser
|
||||
{
|
||||
return this.parser as CatalogSoldOutParser;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { CatalogUpdatedParser } from '../../parser/catalog/CatalogUpdatedParser';
|
||||
|
||||
export class CatalogUpdatedEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, CatalogUpdatedParser);
|
||||
}
|
||||
|
||||
public getParser(): CatalogUpdatedParser
|
||||
{
|
||||
return this.parser as CatalogUpdatedParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
|
||||
export class ClubGiftData
|
||||
{
|
||||
private _offerId: number;
|
||||
private _isVip: boolean;
|
||||
private _isSelectable: boolean;
|
||||
private _daysRequired: number;
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
this._offerId = wrapper.readInt();
|
||||
this._isVip = wrapper.readBoolean();
|
||||
this._daysRequired = wrapper.readInt();
|
||||
this._isSelectable = wrapper.readBoolean();
|
||||
}
|
||||
|
||||
public get offerId(): number
|
||||
{
|
||||
return this._offerId;
|
||||
}
|
||||
|
||||
public get isVip(): boolean
|
||||
{
|
||||
return this._isVip;
|
||||
}
|
||||
|
||||
public get isSelectable(): boolean
|
||||
{
|
||||
return this._isSelectable;
|
||||
}
|
||||
|
||||
public get daysRequired(): number
|
||||
{
|
||||
return this._daysRequired;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { ClubGiftInfoParser } from '../../parser';
|
||||
|
||||
export class ClubGiftInfoEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, ClubGiftInfoParser);
|
||||
}
|
||||
|
||||
public getParser(): ClubGiftInfoParser
|
||||
{
|
||||
return this.parser as ClubGiftInfoParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { ClubGiftInfoParser } from '../../parser';
|
||||
|
||||
export class ClubGiftSelectedEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, ClubGiftInfoParser);
|
||||
}
|
||||
|
||||
public getParser(): ClubGiftInfoParser
|
||||
{
|
||||
return this.parser as ClubGiftInfoParser;
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
|
||||
export class CatalogClubOfferData
|
||||
export class ClubOfferData
|
||||
{
|
||||
private _offerId: number;
|
||||
private _productCode: string;
|
||||
@ -20,33 +20,6 @@ export class CatalogClubOfferData
|
||||
{
|
||||
if(!wrapper) throw new Error('invalid_wrapper');
|
||||
|
||||
this.flush();
|
||||
this.parse(wrapper);
|
||||
}
|
||||
|
||||
public flush(): boolean
|
||||
{
|
||||
this._offerId = -1;
|
||||
this._productCode = null;
|
||||
this._priceCredits = 0;
|
||||
this._priceActivityPoints = 0;
|
||||
this._priceActivityPointsType = 0;
|
||||
this._vip = false;
|
||||
this._months = 0;
|
||||
this._extraDays = 0;
|
||||
this._daysLeftAfterPurchase = 0;
|
||||
this._year = 0;
|
||||
this._month = 0;
|
||||
this._day = 0;
|
||||
this._giftable = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public parse(wrapper: IMessageDataWrapper): boolean
|
||||
{
|
||||
if(!wrapper) return false;
|
||||
|
||||
this._offerId = wrapper.readInt();
|
||||
this._productCode = wrapper.readString();
|
||||
|
||||
@ -63,8 +36,6 @@ export class CatalogClubOfferData
|
||||
this._year = wrapper.readInt();
|
||||
this._month = wrapper.readInt();
|
||||
this._day = wrapper.readInt();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public get offerId(): number
|
@ -0,0 +1,50 @@
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
import { ClubOfferData } from './ClubOfferData';
|
||||
|
||||
export class ClubOfferExtendedData extends ClubOfferData
|
||||
{
|
||||
private _Str_16193: number;
|
||||
private _Str_22071: number;
|
||||
private _Str_21178: number;
|
||||
private _Str_21024: number;
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
super(wrapper);
|
||||
|
||||
this._Str_16193 = wrapper.readInt();
|
||||
this._Str_22071 = wrapper.readInt();
|
||||
this._Str_21178 = wrapper.readInt();
|
||||
this._Str_21024 = wrapper.readInt();
|
||||
}
|
||||
|
||||
public get _Str_23477(): number
|
||||
{
|
||||
return this._Str_16193 * this.months;
|
||||
}
|
||||
|
||||
public get _Str_21585(): number
|
||||
{
|
||||
return this._Str_22071 * this.months;
|
||||
}
|
||||
|
||||
public get _Str_22469(): number
|
||||
{
|
||||
return this._Str_21178;
|
||||
}
|
||||
|
||||
public get _Str_24050(): number
|
||||
{
|
||||
return (this._Str_16193 * this.months) - this.priceCredits;
|
||||
}
|
||||
|
||||
public get _Str_22280(): number
|
||||
{
|
||||
return (this._Str_21585 * this.months) - this.priceActivityPoints;
|
||||
}
|
||||
|
||||
public get _Str_21229(): number
|
||||
{
|
||||
return this._Str_21024;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { DirectSMSClubBuyAvailableMessageParser } from '../../parser';
|
||||
|
||||
export class DirectSMSClubBuyAvailableMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, DirectSMSClubBuyAvailableMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): DirectSMSClubBuyAvailableMessageParser
|
||||
{
|
||||
return this.parser as DirectSMSClubBuyAvailableMessageParser;
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||
import { Nitro } from '../../../../../Nitro';
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
import { Nitro } from '../../../../Nitro';
|
||||
|
||||
export class CatalogFrontPageItem
|
||||
export class FrontPageItem
|
||||
{
|
||||
public static ITEM_CATALOGUE_PAGE: number = 0;
|
||||
public static ITEM_PRODUCT_OFFER: number = 1;
|
||||
@ -49,13 +49,13 @@ export class CatalogFrontPageItem
|
||||
|
||||
switch(this._type)
|
||||
{
|
||||
case CatalogFrontPageItem.ITEM_CATALOGUE_PAGE:
|
||||
case FrontPageItem.ITEM_CATALOGUE_PAGE:
|
||||
this._catalogPageLocation = wrapper.readString();
|
||||
break;
|
||||
case CatalogFrontPageItem.ITEM_PRODUCT_OFFER:
|
||||
case FrontPageItem.ITEM_PRODUCT_OFFER:
|
||||
this._productOfferId = wrapper.readInt();
|
||||
break;
|
||||
case CatalogFrontPageItem.ITEM_IAP:
|
||||
case FrontPageItem.ITEM_IAP:
|
||||
this._productCode = wrapper.readString();
|
||||
break;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { GiftReceiverNotFoundParser } from '../../parser';
|
||||
|
||||
export class GiftReceiverNotFoundEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, GiftReceiverNotFoundParser);
|
||||
}
|
||||
|
||||
public getParser(): GiftReceiverNotFoundParser
|
||||
{
|
||||
return this.parser as GiftReceiverNotFoundParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { GiftWrappingConfigurationParser } from '../../parser';
|
||||
|
||||
export class GiftWrappingConfigurationEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, GiftWrappingConfigurationParser);
|
||||
}
|
||||
|
||||
public getParser(): GiftWrappingConfigurationParser
|
||||
{
|
||||
return this.parser as GiftWrappingConfigurationParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { HabboClubExtendOfferMessageParser } from '../../parser';
|
||||
|
||||
export class HabboClubExtendOfferMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, HabboClubExtendOfferMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): HabboClubExtendOfferMessageParser
|
||||
{
|
||||
return this.parser as HabboClubExtendOfferMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { HabboClubOffersMessageParser } from '../../parser';
|
||||
|
||||
export class HabboClubOffersMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, HabboClubOffersMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): HabboClubOffersMessageParser
|
||||
{
|
||||
return this.parser as HabboClubOffersMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { IsOfferGiftableMessageParser } from '../../parser';
|
||||
|
||||
export class IsOfferGiftableMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, IsOfferGiftableMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): IsOfferGiftableMessageParser
|
||||
{
|
||||
return this.parser as IsOfferGiftableMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { LimitedEditionSoldOutParser } from '../../parser';
|
||||
|
||||
export class LimitedEditionSoldOutEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, LimitedEditionSoldOutParser);
|
||||
}
|
||||
|
||||
public getParser(): LimitedEditionSoldOutParser
|
||||
{
|
||||
return this.parser as LimitedEditionSoldOutParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { LimitedOfferAppearingNextMessageParser } from '../../parser';
|
||||
|
||||
export class LimitedOfferAppearingNextMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, LimitedOfferAppearingNextMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): LimitedOfferAppearingNextMessageParser
|
||||
{
|
||||
return this.parser as LimitedOfferAppearingNextMessageParser;
|
||||
}
|
||||
}
|
@ -1,14 +1,13 @@
|
||||
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||
import { ICatalogPageData } from './ICatalogPageData';
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
|
||||
export class CatalogPageData implements ICatalogPageData
|
||||
export class NodeData
|
||||
{
|
||||
private _visible: boolean;
|
||||
private _icon: number;
|
||||
private _pageId: number;
|
||||
private _pageName: string;
|
||||
private _localization: string;
|
||||
private _children: CatalogPageData[];
|
||||
private _children: NodeData[];
|
||||
private _offerIds: number[];
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
@ -55,7 +54,7 @@ export class CatalogPageData implements ICatalogPageData
|
||||
|
||||
while(totalChildren > 0)
|
||||
{
|
||||
this._children.push(new CatalogPageData(wrapper));
|
||||
this._children.push(new NodeData(wrapper));
|
||||
|
||||
totalChildren--;
|
||||
}
|
||||
@ -88,7 +87,7 @@ export class CatalogPageData implements ICatalogPageData
|
||||
return this._localization;
|
||||
}
|
||||
|
||||
public get children(): CatalogPageData[]
|
||||
public get children(): NodeData[]
|
||||
{
|
||||
return this._children;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { NotEnoughBalanceMessageParser } from '../../parser';
|
||||
|
||||
export class NotEnoughBalanceMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, NotEnoughBalanceMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): NotEnoughBalanceMessageParser
|
||||
{
|
||||
return this.parser as NotEnoughBalanceMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { ProductOfferMessageParser } from '../../parser';
|
||||
|
||||
export class ProductOfferEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, ProductOfferMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): ProductOfferMessageParser
|
||||
{
|
||||
return this.parser as ProductOfferMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { PurchaseErrorMessageParser } from '../../parser';
|
||||
|
||||
export class PurchaseErrorMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, PurchaseErrorMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): PurchaseErrorMessageParser
|
||||
{
|
||||
return this.parser as PurchaseErrorMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { PurchaseNotAllowedMessageParser } from '../../parser';
|
||||
|
||||
export class PurchaseNotAllowedMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, PurchaseNotAllowedMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): PurchaseNotAllowedMessageParser
|
||||
{
|
||||
return this.parser as PurchaseNotAllowedMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { PurchaseOKMessageParser } from '../../parser';
|
||||
|
||||
export class PurchaseOKMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, PurchaseOKMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): PurchaseOKMessageParser
|
||||
{
|
||||
return this.parser as PurchaseOKMessageParser;
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import { IMessageDataWrapper } from '../../../../../../core/communication/messages/IMessageDataWrapper';
|
||||
import { CatalogProductOfferData } from './CatalogProductOfferData';
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
import { CatalogPageMessageProductData } from './CatalogPageMessageProductData';
|
||||
|
||||
export class CatalogPurchaseData
|
||||
export class PurchaseOKMessageOfferData
|
||||
{
|
||||
private _offerId: number;
|
||||
private _localizationId: string;
|
||||
@ -12,7 +12,7 @@ export class CatalogPurchaseData
|
||||
private _clubLevel: number;
|
||||
private _giftable: boolean;
|
||||
private _bundlePurchaseAllowed: boolean;
|
||||
private _products: CatalogProductOfferData[];
|
||||
private _products: CatalogPageMessageProductData[];
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
@ -54,7 +54,7 @@ export class CatalogPurchaseData
|
||||
|
||||
while(totalProducts > 0)
|
||||
{
|
||||
this._products.push(new CatalogProductOfferData(wrapper));
|
||||
this._products.push(new CatalogPageMessageProductData(wrapper));
|
||||
|
||||
totalProducts--;
|
||||
}
|
||||
@ -110,7 +110,7 @@ export class CatalogPurchaseData
|
||||
return this._bundlePurchaseAllowed;
|
||||
}
|
||||
|
||||
public get products(): CatalogProductOfferData[]
|
||||
public get products(): CatalogPageMessageProductData[]
|
||||
{
|
||||
return this._products;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { RoomAdPurchaseInfoEventParser } from '../../parser';
|
||||
|
||||
export class RoomAdPurchaseInfoEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, RoomAdPurchaseInfoEventParser);
|
||||
}
|
||||
|
||||
public getParser(): RoomAdPurchaseInfoEventParser
|
||||
{
|
||||
return this.parser as RoomAdPurchaseInfoEventParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { SeasonalCalendarDailyOfferMessageParser } from '../../parser';
|
||||
|
||||
export class SeasonalCalendarDailyOfferMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, SeasonalCalendarDailyOfferMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): SeasonalCalendarDailyOfferMessageParser
|
||||
{
|
||||
return this.parser as SeasonalCalendarDailyOfferMessageParser;
|
||||
}
|
||||
}
|
@ -1,8 +1,7 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { SellablePetPalettesParser } from '../../parser';
|
||||
|
||||
export class SellablePetPalettesEvent extends MessageEvent implements IMessageEvent
|
||||
export class SellablePetPalettesMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
@ -0,0 +1,154 @@
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
import { Nitro } from '../../../../Nitro';
|
||||
|
||||
export class TargetedOfferData
|
||||
{
|
||||
protected _id: number;
|
||||
protected _identifier: string;
|
||||
protected _type: number;
|
||||
protected _title: string;
|
||||
protected _Str_1858: string;
|
||||
protected _Str_2991: string;
|
||||
protected _Str_18782: string;
|
||||
protected _productCode: string;
|
||||
protected _Str_9772: number;
|
||||
protected _expirationTime: number;
|
||||
protected _Str_3594: number;
|
||||
protected _Str_3539: number;
|
||||
protected _Str_2956: number;
|
||||
protected _Str_11962: string[];
|
||||
protected _Str_9163: number;
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
this._Str_9163 = wrapper.readInt();
|
||||
this._id = wrapper.readInt();
|
||||
this._identifier = wrapper.readString();
|
||||
this._productCode = wrapper.readString();
|
||||
this._Str_3594 = wrapper.readInt();
|
||||
this._Str_3539 = wrapper.readInt();
|
||||
this._Str_2956 = wrapper.readInt();
|
||||
this._Str_9772 = wrapper.readInt();
|
||||
|
||||
const time = wrapper.readInt();
|
||||
this._expirationTime = ((time > 0) ? ((time * 1000) + Nitro.instance.time) : 0);
|
||||
|
||||
this._title = wrapper.readString();
|
||||
this._Str_1858 = wrapper.readString();
|
||||
this._Str_2991 = wrapper.readString();
|
||||
this._Str_18782 = wrapper.readString();
|
||||
this._type = wrapper.readInt();
|
||||
this._Str_11962 = [];
|
||||
|
||||
let count = wrapper.readInt();
|
||||
|
||||
while(count > 0)
|
||||
{
|
||||
this._Str_11962.push(wrapper.readString());
|
||||
|
||||
count--;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public populate(offerData: TargetedOfferData)
|
||||
{
|
||||
if(!offerData) return;
|
||||
|
||||
this._id = offerData.id;
|
||||
this._identifier = offerData.identifier;
|
||||
this._type = offerData.type;
|
||||
this._title = offerData.title;
|
||||
this._Str_1858 = offerData.description;
|
||||
this._Str_2991 = offerData.imageUrl;
|
||||
this._Str_18782 = offerData._Str_13452;
|
||||
this._productCode = offerData.productCode;
|
||||
this._Str_9772 = offerData.purchaseLimit;
|
||||
this._expirationTime = offerData.expirationTime;
|
||||
this._Str_3594 = offerData.priceInCredits;
|
||||
this._Str_3539 = offerData.priceInActivityPoints;
|
||||
this._Str_2956 = offerData.activityPointType;
|
||||
this._Str_11962 = offerData._Str_24978;
|
||||
this._Str_9163 = offerData._Str_11180;
|
||||
}
|
||||
|
||||
public _Str_24338(k: number): void
|
||||
{
|
||||
this._Str_9772 = (this._Str_9772 - k);
|
||||
}
|
||||
|
||||
public get id(): number
|
||||
{
|
||||
return this._id;
|
||||
}
|
||||
|
||||
public get identifier(): string
|
||||
{
|
||||
return this._identifier;
|
||||
}
|
||||
|
||||
public get type(): number
|
||||
{
|
||||
return this._type;
|
||||
}
|
||||
|
||||
public get title(): string
|
||||
{
|
||||
return this._title;
|
||||
}
|
||||
|
||||
public get description(): string
|
||||
{
|
||||
return this._Str_1858;
|
||||
}
|
||||
|
||||
public get imageUrl(): string
|
||||
{
|
||||
return this._Str_2991;
|
||||
}
|
||||
|
||||
public get _Str_13452(): string
|
||||
{
|
||||
return this._Str_18782;
|
||||
}
|
||||
|
||||
public get productCode(): string
|
||||
{
|
||||
return this._productCode;
|
||||
}
|
||||
|
||||
public get purchaseLimit(): number
|
||||
{
|
||||
return this._Str_9772;
|
||||
}
|
||||
|
||||
public get expirationTime(): number
|
||||
{
|
||||
return this._expirationTime;
|
||||
}
|
||||
|
||||
public get priceInCredits(): number
|
||||
{
|
||||
return this._Str_3594;
|
||||
}
|
||||
|
||||
public get priceInActivityPoints(): number
|
||||
{
|
||||
return this._Str_3539;
|
||||
}
|
||||
|
||||
public get activityPointType(): number
|
||||
{
|
||||
return this._Str_2956;
|
||||
}
|
||||
|
||||
public get _Str_24978(): string[]
|
||||
{
|
||||
return this._Str_11962;
|
||||
}
|
||||
|
||||
public get _Str_11180(): number
|
||||
{
|
||||
return this._Str_9163;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { TargetedOfferParser } from '../../parser';
|
||||
|
||||
export class TargetedOfferEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, TargetedOfferParser);
|
||||
}
|
||||
|
||||
public getParser(): TargetedOfferParser
|
||||
{
|
||||
return this.parser as TargetedOfferParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { TargetedOfferNotFoundParser } from '../../parser';
|
||||
|
||||
export class TargetedOfferNotFoundEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, TargetedOfferNotFoundParser);
|
||||
}
|
||||
|
||||
public getParser(): TargetedOfferNotFoundParser
|
||||
{
|
||||
return this.parser as TargetedOfferNotFoundParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { VoucherRedeemErrorMessageParser } from '../../parser';
|
||||
|
||||
export class VoucherRedeemErrorMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, VoucherRedeemErrorMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): VoucherRedeemErrorMessageParser
|
||||
{
|
||||
return this.parser as VoucherRedeemErrorMessageParser;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { VoucherRedeemOkMessageParser } from '../../parser/catalog/VoucherRedeemOkMessageParser';
|
||||
|
||||
export class VoucherRedeemOkMessageEvent extends MessageEvent implements IMessageEvent
|
||||
{
|
||||
constructor(callBack: Function)
|
||||
{
|
||||
super(callBack, VoucherRedeemOkMessageParser);
|
||||
}
|
||||
|
||||
public getParser(): VoucherRedeemOkMessageParser
|
||||
{
|
||||
return this.parser as VoucherRedeemOkMessageParser;
|
||||
}
|
||||
}
|
@ -1,22 +1,43 @@
|
||||
export * from './BonusRareInfoMessageEvent';
|
||||
export * from './CatalogApproveNameResultEvent';
|
||||
export * from './CatalogClubEvent';
|
||||
export * from './CatalogClubGiftsEvent';
|
||||
export * from './CatalogGiftConfigurationEvent';
|
||||
export * from './CatalogGiftUsernameUnavailableEvent';
|
||||
export * from './CatalogGroupsEvent';
|
||||
export * from './CatalogModeEvent';
|
||||
export * from './CatalogPageEvent';
|
||||
export * from './CatalogPagesEvent';
|
||||
export * from './CatalogPurchaseEvent';
|
||||
export * from './CatalogPurchaseFailedEvent';
|
||||
export * from './CatalogPurchaseUnavailableEvent';
|
||||
export * from './CatalogRedeemVoucherErrorEvent';
|
||||
export * from './CatalogRedeemVoucherOkEvent';
|
||||
export * from './CatalogSearchEvent';
|
||||
export * from './CatalogSoldOutEvent';
|
||||
export * from './CatalogUpdatedEvent';
|
||||
export * from './BuildersClubFurniCountMessageEvent';
|
||||
export * from './BuildersClubSubscriptionStatusMessageEvent';
|
||||
export * from './BundleDiscountRuleset';
|
||||
export * from './BundleDiscountRulesetMessageEvent';
|
||||
export * from './CatalogLocalizationData';
|
||||
export * from './CatalogPageExpirationEvent';
|
||||
export * from './CatalogPageMessageEvent';
|
||||
export * from './CatalogPageMessageOfferData';
|
||||
export * from './CatalogPageMessageProductData';
|
||||
export * from './CatalogPagesListEvent';
|
||||
export * from './CatalogPageWithEarliestExpiryMessageEvent';
|
||||
export * from './CatalogPublishedMessageEvent';
|
||||
export * from './ClubGiftData';
|
||||
export * from './ClubGiftInfoEvent';
|
||||
export * from './ClubGiftSelectedEvent';
|
||||
export * from './ClubOfferData';
|
||||
export * from './ClubOfferExtendedData';
|
||||
export * from './DirectSMSClubBuyAvailableMessageEvent';
|
||||
export * from './FrontPageItem';
|
||||
export * from './GiftReceiverNotFoundEvent';
|
||||
export * from './GiftWrappingConfigurationEvent';
|
||||
export * from './HabboClubExtendOfferMessageEvent';
|
||||
export * from './HabboClubOffersMessageEvent';
|
||||
export * from './IsOfferGiftableMessageEvent';
|
||||
export * from './LimitedEditionSoldOutEvent';
|
||||
export * from './LimitedOfferAppearingNextMessageEvent';
|
||||
export * from './marketplace';
|
||||
export * from './MarketplaceConfigEvent';
|
||||
export * from './MarketplaceItemStatsEvent';
|
||||
export * from './SellablePetPalettesEvent';
|
||||
export * from './NodeData';
|
||||
export * from './NotEnoughBalanceMessageEvent';
|
||||
export * from './ProductOfferEvent';
|
||||
export * from './PurchaseErrorMessageEvent';
|
||||
export * from './PurchaseNotAllowedMessageEvent';
|
||||
export * from './PurchaseOKMessageEvent';
|
||||
export * from './PurchaseOKMessageOfferData';
|
||||
export * from './RoomAdPurchaseInfoEvent';
|
||||
export * from './SeasonalCalendarDailyOfferMessageEvent';
|
||||
export * from './SellablePetPalettesMessageEvent';
|
||||
export * from './TargetedOfferData';
|
||||
export * from './TargetedOfferEvent';
|
||||
export * from './TargetedOfferNotFoundEvent';
|
||||
export * from './VoucherRedeemErrorMessageEvent';
|
||||
export * from './VoucherRedeemOkMessageEvent';
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../../core';
|
||||
import { MarketplaceBuyOfferResultParser } from '../../../parser/catalog/marketplace/MarketplaceBuyOfferResultParser';
|
||||
|
||||
export class MarketplaceBuyOfferResultEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../../core';
|
||||
import { MarketplaceCancelItemParser } from '../../../parser/catalog/marketplace/MarketplaceCancelItemParser';
|
||||
|
||||
export class MarketplaceCancelItemEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { MarketplaceConfigParser } from '../../parser/catalog/MarketplaceConfigParser';
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { MarketplaceItemStatsParser } from '../../parser/catalog/MarketplaceItemStatsParser';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../../core';
|
||||
import { MarketplaceItemStatsParser } from '../../../parser';
|
||||
|
||||
|
||||
export class MarketplaceItemStatsEvent extends MessageEvent implements IMessageEvent
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../../core';
|
||||
import { MarketplaceOffersReceivedParser } from '../../../parser/catalog/marketplace/MarketplaceOffersReceivedParser';
|
||||
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../../core';
|
||||
import { MarketplaceOwnItemsParser } from '../../../parser/catalog/marketplace/MarketplaceOwnItemsParser';
|
||||
|
||||
export class MarketplaceOwnItemsEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { ClientPingParser } from '../../parser/client/ClientPingParser';
|
||||
|
||||
export class ClientPingEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CraftableProductsMessageParser } from '../../parser/crafting/CraftableProductsMessageParser';
|
||||
|
||||
export class CraftableProductsEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CraftingRecipeMessageParser } from '../../parser/crafting/CraftingRecipeMessageParser';
|
||||
|
||||
export class CraftingRecipeEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CraftingRecipesAvailableMessageParser } from '../../parser/crafting/CraftingRecipesAvailableMessageParser';
|
||||
|
||||
export class CraftingRecipesAvailableEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { CraftingResultMessageParser } from '../../parser/crafting/CraftingResultMessageParser';
|
||||
|
||||
export class CraftingResultEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent';
|
||||
import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent';
|
||||
import { IMessageEvent, MessageEvent } from '../../../../../core';
|
||||
import { DesktopViewParser } from '../../parser/desktop/DesktopViewParser';
|
||||
|
||||
export class DesktopViewEvent extends MessageEvent implements IMessageEvent
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMessageDataWrapper } from '../../../../../core/communication/messages/IMessageDataWrapper';
|
||||
import { IMessageDataWrapper } from '../../../../../core';
|
||||
|
||||
export class AcceptFriendFailerData
|
||||
{
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user