From 62ac80cab298a727e6d7a927315ed8e9f97afeb7 Mon Sep 17 00:00:00 2001 From: dank074 Date: Thu, 11 Nov 2021 21:23:41 -0600 Subject: [PATCH 1/2] added outgoing help packets --- src/nitro/communication/NitroMessages.ts | 31 ++++++++++++++++++- .../messages/outgoing/OutgoingHeader.ts | 29 +++++++++++++++++ ...lForHelpFromForumMessageMessageComposer.ts | 21 +++++++++++++ ...llForHelpFromForumThreadMessageComposer.ts | 21 +++++++++++++ .../help/CallForHelpFromIMMessageComposer.ts | 21 +++++++++++++ .../CallForHelpFromPhotoMessageComposer.ts | 21 +++++++++++++ .../CallForHelpFromSelfieMessageComposer.ts | 21 +++++++++++++ ...eviewGuideDecidesOnOfferMessageComposer.ts | 21 +++++++++++++ .../ChatReviewGuideDetachedMessageComposer.ts | 21 +++++++++++++ .../ChatReviewGuideVoteMessageComposer.ts | 21 +++++++++++++ .../ChatReviewSessionCreateMessageComposer.ts | 21 +++++++++++++ ...eletePendingCallsForHelpMessageComposer.ts | 21 +++++++++++++ .../help/GetCfhStatusMessageComposer.ts | 21 +++++++++++++ .../help/GetFaqCategoryMessageComposer.ts | 21 +++++++++++++ .../help/GetFaqTextMessageComposer.ts | 21 +++++++++++++ .../GetGuideReportingStatusMessageComposer.ts | 21 +++++++++++++ .../GetPendingCallsForHelpMessageComposer.ts | 21 +++++++++++++ .../outgoing/help/GetQuizQuestionsComposer.ts | 21 +++++++++++++ .../help/GuideSessionCreateMessageComposer.ts | 21 +++++++++++++ .../GuideSessionFeedbackMessageComposer.ts | 21 +++++++++++++ ...eSessionGetRequesterRoomMessageComposer.ts | 21 +++++++++++++ ...GuideSessionGuideDecidesMessageComposer.ts | 21 +++++++++++++ ...deSessionInviteRequesterMessageComposer.ts | 21 +++++++++++++ .../GuideSessionIsTypingMessageComposer.ts | 21 +++++++++++++ .../GuideSessionMessageMessageComposer.ts | 21 +++++++++++++ ...GuideSessionOnDutyUpdateMessageComposer.ts | 21 +++++++++++++ .../help/GuideSessionReportMessageComposer.ts | 21 +++++++++++++ ...eSessionRequesterCancelsMessageComposer.ts | 21 +++++++++++++ .../GuideSessionResolvedMessageComposer.ts | 21 +++++++++++++ .../outgoing/help/PostQuizAnswersComposer.ts | 21 +++++++++++++ .../help/SearchFaqsMessageComposer.ts | 21 +++++++++++++ .../messages/outgoing/help/index.ts | 29 +++++++++++++++++ 32 files changed, 697 insertions(+), 1 deletion(-) create mode 100644 src/nitro/communication/messages/outgoing/help/CallForHelpFromForumMessageMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/CallForHelpFromForumThreadMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/CallForHelpFromIMMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/CallForHelpFromPhotoMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/CallForHelpFromSelfieMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/ChatReviewGuideDecidesOnOfferMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/ChatReviewGuideDetachedMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/ChatReviewGuideVoteMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/ChatReviewSessionCreateMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/DeletePendingCallsForHelpMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GetCfhStatusMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GetFaqCategoryMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GetFaqTextMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GetGuideReportingStatusMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GetPendingCallsForHelpMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GetQuizQuestionsComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionCreateMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionFeedbackMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionGetRequesterRoomMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionGuideDecidesMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionInviteRequesterMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionIsTypingMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionMessageMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionOnDutyUpdateMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionReportMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionRequesterCancelsMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/GuideSessionResolvedMessageComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/PostQuizAnswersComposer.ts create mode 100644 src/nitro/communication/messages/outgoing/help/SearchFaqsMessageComposer.ts diff --git a/src/nitro/communication/NitroMessages.ts b/src/nitro/communication/NitroMessages.ts index e9dd2af4..a93ec143 100644 --- a/src/nitro/communication/NitroMessages.ts +++ b/src/nitro/communication/NitroMessages.ts @@ -1,5 +1,5 @@ import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration'; -import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, ApproveNameMessageEvent, AvailabilityTimeMessageEvent, BadgePointLimitsEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, BuildersClubFurniCountMessageEvent, BuildersClubSubscriptionStatusMessageEvent, BundleDiscountRulesetMessageEvent, CallForHelpMessageComposer, ChangeUserNameMessageComposer, ChangeUserNameResultMessageEvent, CheckUserNameMessageComposer, CheckUserNameResultMessageEvent, CloseIssueDefaultActionMessageComposer, CloseIssuesMessageComposer, ClubGiftNotificationEvent, ControlYoutubeDisplayPlaybackMessageComposer, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, ForwardToASubmittableRoomMessageComposer, ForwardToRandomCompetitionRoomMessageComposer, FurnitureGroupInfoComposer, GetBonusRareInfoMessageComposer, GetCatalogPageExpirationComposer, GetCatalogPageWithEarliestExpiryComposer, GetCfhChatlogMessageComposer, GetCurrentTimingCodeMessageComposer, GetDirectClubBuyAvailableComposer, GetForumsListMessageComposer, GetForumStatsMessageComposer, GetGiftMessageComposer, GetHabboBasicMembershipExtendOfferComposer, GetHabboClubExtendOfferMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetLimitedOfferAppearingNextComposer, GetMessagesMessageComposer, GetNextTargetedOfferComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetRoomAdPurchaseInfoComposer, GetSeasonalCalendarDailyOfferComposer, GetSecondsUntilMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetThreadMessageComposer, GetThreadsMessageComposer, GetUnreadForumsCountMessageComposer, GetUserSongDisksMessageComposer, GetYoutubeDisplayStatusMessageComposer, GoToFlatMessageComposer, GroupBadgesComposer, GroupBadgesEvent, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, IsBadgeRequestFulfilledEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MarkCatalogNewAdditionsPageOpenedComposer, MarketplaceBuyOfferComposer, MarketplaceRedeemCreditsComposer, MarketplaceRequesstItemStatsComposer, MarketplaceRequestComposer, MarketplaceRequestOffersComposer, MarketplaceRequestOwnItemsComposer, MarketplaceTakeItemBackComposer, ModerateMessageMessageComposer, ModerateThreadMessageComposer, ModToolPreferencesComposer, ModToolSanctionComposer, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PickIssuesMessageComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, PostMessageMessageComposer, PurchaseBasicMembershipExtensionComposer, PurchaseRoomAdMessageComposer, PurchaseTargetedOfferComposer, PurchaseVipMembershipExtensionComposer, ReleaseIssuesMessageComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, ResetPhoneNumberStateMessageComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomCompetitionInitMessageComposer, RoomUnitGiveHandItemPetComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, SetPhoneNumberVerificationStatusMessageComposer, SetTargetedOfferStateComposer, SetYoutubeDisplayPlaylistMessageComposer, ShopTargetedOfferViewedComposer, SubmitRoomToCompetitionMessageComposer, TalentTrackEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, TryPhoneNumberMessageComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UpdateForumReadMarkerMessageComposer, UpdateForumSettingsMessageComposer, UpdateThreadMessageComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, VerifyCodeMessageComposer, VoteForRoomMessageComposer, WardrobeMessageEvent } from './messages'; +import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, ApproveNameMessageEvent, AvailabilityTimeMessageEvent, BadgePointLimitsEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, BuildersClubFurniCountMessageEvent, BuildersClubSubscriptionStatusMessageEvent, BundleDiscountRulesetMessageEvent, CallForHelpFromForumMessageMessageComposer, CallForHelpFromForumThreadMessageComposer, CallForHelpFromIMMessageComposer, CallForHelpFromPhotoMessageComposer, CallForHelpFromSelfieMessageComposer, CallForHelpMessageComposer, ChangeUserNameMessageComposer, ChangeUserNameResultMessageEvent, ChatReviewGuideDecidesOnOfferMessageComposer, ChatReviewGuideDetachedMessageComposer, ChatReviewGuideVoteMessageComposer, ChatReviewSessionCreateMessageComposer, CheckUserNameMessageComposer, CheckUserNameResultMessageEvent, CloseIssueDefaultActionMessageComposer, CloseIssuesMessageComposer, ClubGiftNotificationEvent, ControlYoutubeDisplayPlaybackMessageComposer, DeletePendingCallsForHelpMessageComposer, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, ForwardToASubmittableRoomMessageComposer, ForwardToRandomCompetitionRoomMessageComposer, FurnitureGroupInfoComposer, GetBonusRareInfoMessageComposer, GetCatalogPageExpirationComposer, GetCatalogPageWithEarliestExpiryComposer, GetCfhChatlogMessageComposer, GetCfhStatusMessageComposer, GetCurrentTimingCodeMessageComposer, GetDirectClubBuyAvailableComposer, GetFaqCategoryMessageComposer, GetFaqTextMessageComposer, GetForumsListMessageComposer, GetForumStatsMessageComposer, GetGiftMessageComposer, GetGuideReportingStatusMessageComposer, GetHabboBasicMembershipExtendOfferComposer, GetHabboClubExtendOfferMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetLimitedOfferAppearingNextComposer, GetMessagesMessageComposer, GetNextTargetedOfferComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetPendingCallsForHelpMessageComposer, GetQuizQuestionsComposer, GetRoomAdPurchaseInfoComposer, GetSeasonalCalendarDailyOfferComposer, GetSecondsUntilMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetThreadMessageComposer, GetThreadsMessageComposer, GetUnreadForumsCountMessageComposer, GetUserSongDisksMessageComposer, GetYoutubeDisplayStatusMessageComposer, GoToFlatMessageComposer, GroupBadgesComposer, GroupBadgesEvent, GuideSessionCreateMessageComposer, GuideSessionFeedbackMessageComposer, GuideSessionGetRequesterRoomMessageComposer, GuideSessionGuideDecidesMessageComposer, GuideSessionInviteRequesterMessageComposer, GuideSessionIsTypingMessageComposer, GuideSessionMessageMessageComposer, GuideSessionOnDutyUpdateMessageComposer, GuideSessionReportMessageComposer, GuideSessionRequesterCancelsMessageComposer, GuideSessionResolvedMessageComposer, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, IsBadgeRequestFulfilledEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MarkCatalogNewAdditionsPageOpenedComposer, MarketplaceBuyOfferComposer, MarketplaceRedeemCreditsComposer, MarketplaceRequesstItemStatsComposer, MarketplaceRequestComposer, MarketplaceRequestOffersComposer, MarketplaceRequestOwnItemsComposer, MarketplaceTakeItemBackComposer, ModerateMessageMessageComposer, ModerateThreadMessageComposer, ModToolPreferencesComposer, ModToolSanctionComposer, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PickIssuesMessageComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, PostMessageMessageComposer, PostQuizAnswersComposer, PurchaseBasicMembershipExtensionComposer, PurchaseRoomAdMessageComposer, PurchaseTargetedOfferComposer, PurchaseVipMembershipExtensionComposer, ReleaseIssuesMessageComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, ResetPhoneNumberStateMessageComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomCompetitionInitMessageComposer, RoomUnitGiveHandItemPetComposer, SearchFaqsMessageComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, SetPhoneNumberVerificationStatusMessageComposer, SetTargetedOfferStateComposer, SetYoutubeDisplayPlaylistMessageComposer, ShopTargetedOfferViewedComposer, SubmitRoomToCompetitionMessageComposer, TalentTrackEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, TryPhoneNumberMessageComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UpdateForumReadMarkerMessageComposer, UpdateForumSettingsMessageComposer, UpdateThreadMessageComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, VerifyCodeMessageComposer, VoteForRoomMessageComposer, WardrobeMessageEvent } from './messages'; import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent'; import { BotAddedToInventoryEvent, BotInventoryMessageEvent, BotReceivedMessageEvent, BotRemovedFromInventoryEvent } from './messages/incoming/bots'; import { CfhSanctionMessageEvent, CfhTopicsInitEvent, SanctionStatusEvent } from './messages/incoming/callforhelp'; @@ -963,7 +963,36 @@ export class NitroMessages implements IMessageConfiguration this._composers.set(OutgoingHeader.FORUM_UPDATE_THREAD, UpdateThreadMessageComposer); // HELP + this._composers.set(OutgoingHeader.CALL_FOR_HELP_FROM_FORUM_MESSAGE, CallForHelpFromForumMessageMessageComposer); + this._composers.set(OutgoingHeader.CALL_FOR_HELP_FROM_FORUM_THREAD, CallForHelpFromForumThreadMessageComposer); + this._composers.set(OutgoingHeader.CALL_FOR_HELP_FROM_IM, CallForHelpFromIMMessageComposer); + this._composers.set(OutgoingHeader.CALL_FOR_HELP_FROM_PHOTO, CallForHelpFromPhotoMessageComposer); + this._composers.set(OutgoingHeader.CALL_FOR_HELP_FROM_SELFIE, CallForHelpFromSelfieMessageComposer); this._composers.set(OutgoingHeader.CALL_FOR_HELP, CallForHelpMessageComposer); + this._composers.set(OutgoingHeader.CHAT_REVIEW_GUIDE_DECIDES, ChatReviewGuideDecidesOnOfferMessageComposer); + this._composers.set(OutgoingHeader.CHAT_REVIEW_GUIDE_DETACHED, ChatReviewGuideDetachedMessageComposer); + this._composers.set(OutgoingHeader.CHAT_REVIEW_GUIDE_VOTE, ChatReviewGuideVoteMessageComposer); + this._composers.set(OutgoingHeader.CHAT_REVIEW_SESSION_CREATE, ChatReviewSessionCreateMessageComposer); + this._composers.set(OutgoingHeader.DELETE_PENDING_CALLS_FOR_HELP, DeletePendingCallsForHelpMessageComposer); + this._composers.set(OutgoingHeader.GET_CFH_STATUS, GetCfhStatusMessageComposer); + this._composers.set(OutgoingHeader.GET_FAQ_CATEGORY, GetFaqCategoryMessageComposer); + this._composers.set(OutgoingHeader.GET_FAQ_TEXT, GetFaqTextMessageComposer); + this._composers.set(OutgoingHeader.GET_GUIDE_REPORTING_STATUS, GetGuideReportingStatusMessageComposer); + this._composers.set(OutgoingHeader.GET_PENDING_CALLS_FOR_HELP, GetPendingCallsForHelpMessageComposer); + this._composers.set(OutgoingHeader.GET_QUIZ_QUESTIONS, GetQuizQuestionsComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_CREATE, GuideSessionCreateMessageComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_FEEDBACK, GuideSessionFeedbackMessageComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_GET_REQUESTER_ROOM, GuideSessionGetRequesterRoomMessageComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_GUIDE_DECIDES, GuideSessionGuideDecidesMessageComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_INVITE_REQUESTER, GuideSessionInviteRequesterMessageComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_IS_TYPING, GuideSessionIsTypingMessageComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_MESSAGE, GuideSessionMessageMessageComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_ON_DUTY_UPDATE, GuideSessionOnDutyUpdateMessageComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_REPORT, GuideSessionReportMessageComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_REQUESTER_CANCELS, GuideSessionRequesterCancelsMessageComposer); + this._composers.set(OutgoingHeader.GUIDE_SESSION_RESOLVED, GuideSessionResolvedMessageComposer); + this._composers.set(OutgoingHeader.POST_QUIZ_ANSWERS, PostQuizAnswersComposer); + this._composers.set(OutgoingHeader.SEARCH_FAQS, SearchFaqsMessageComposer); // CLIENT this._composers.set(OutgoingHeader.CLIENT_PONG, ClientPongComposer); diff --git a/src/nitro/communication/messages/outgoing/OutgoingHeader.ts b/src/nitro/communication/messages/outgoing/OutgoingHeader.ts index d0459988..84555065 100644 --- a/src/nitro/communication/messages/outgoing/OutgoingHeader.ts +++ b/src/nitro/communication/messages/outgoing/OutgoingHeader.ts @@ -343,4 +343,33 @@ export class OutgoingHeader public static GET_YOUTUBE_DISPLAY_STATUS = 336; public static SET_YOUTUBE_DISPLAY_PLAYLIST = 2069; public static GO_TO_FLAT = 685; + public static CALL_FOR_HELP_FROM_FORUM_MESSAGE = 1412; + public static CALL_FOR_HELP_FROM_FORUM_THREAD = 534; + public static CALL_FOR_HELP_FROM_IM = 2950; + public static CALL_FOR_HELP_FROM_PHOTO = 2492; + public static CALL_FOR_HELP_FROM_SELFIE = 2755; + public static CHAT_REVIEW_GUIDE_DECIDES = 3365; + public static CHAT_REVIEW_GUIDE_DETACHED = 2501; + public static CHAT_REVIEW_GUIDE_VOTE = 3961; + public static CHAT_REVIEW_SESSION_CREATE = 3060; + public static DELETE_PENDING_CALLS_FOR_HELP = 3605; + public static GET_CFH_STATUS = 2746; + public static GET_FAQ_CATEGORY = 3445; + public static GET_FAQ_TEXT = 1849; + public static GET_GUIDE_REPORTING_STATUS = 3786; + public static GET_PENDING_CALLS_FOR_HELP = 3267; + public static GET_QUIZ_QUESTIONS = 1296; + public static GUIDE_SESSION_CREATE = 3338; + public static GUIDE_SESSION_FEEDBACK = 477; + public static GUIDE_SESSION_GET_REQUESTER_ROOM = 1052; + public static GUIDE_SESSION_GUIDE_DECIDES = 1424; + public static GUIDE_SESSION_INVITE_REQUESTER = 234; + public static GUIDE_SESSION_IS_TYPING = 519; + public static GUIDE_SESSION_MESSAGE = 3899 + public static GUIDE_SESSION_ON_DUTY_UPDATE = 1922; + public static GUIDE_SESSION_REPORT = 3969; + public static GUIDE_SESSION_REQUESTER_CANCELS = 291; + public static GUIDE_SESSION_RESOLVED = 887; + public static POST_QUIZ_ANSWERS = 3720; + public static SEARCH_FAQS = 2031; } diff --git a/src/nitro/communication/messages/outgoing/help/CallForHelpFromForumMessageMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/CallForHelpFromForumMessageMessageComposer.ts new file mode 100644 index 00000000..9d49e92b --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/CallForHelpFromForumMessageMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class CallForHelpFromForumMessageMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:number, _arg_2:number, _arg_3:number, _arg_4:number, _arg_5:string) + { + this._data = [k, _arg_2, _arg_3, _arg_4, _arg_5]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/CallForHelpFromForumThreadMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/CallForHelpFromForumThreadMessageComposer.ts new file mode 100644 index 00000000..5b19eee4 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/CallForHelpFromForumThreadMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class CallForHelpFromForumThreadMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:number, _arg_2:number, _arg_3:number, _arg_4:string) + { + this._data = [k, _arg_2, _arg_3, _arg_4]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/CallForHelpFromIMMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/CallForHelpFromIMMessageComposer.ts new file mode 100644 index 00000000..6016ff90 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/CallForHelpFromIMMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class CallForHelpFromIMMessageComposer implements IMessageComposer +{ + private _data: any; + + constructor(message:string, topicId:number, reportedUserId:number, chatEntries:(string|number)[]) + { + this._data = [message, topicId, reportedUserId, chatEntries.length / 2, ...chatEntries]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/CallForHelpFromPhotoMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/CallForHelpFromPhotoMessageComposer.ts new file mode 100644 index 00000000..f907f692 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/CallForHelpFromPhotoMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class CallForHelpFromPhotoMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:string, _arg_2:number, _arg_3:number, _arg_4:number, _arg_5:number) + { + this._data = [k, _arg_2, _arg_3, _arg_4, _arg_5]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/CallForHelpFromSelfieMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/CallForHelpFromSelfieMessageComposer.ts new file mode 100644 index 00000000..a7e49327 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/CallForHelpFromSelfieMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class CallForHelpFromSelfieMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:string, _arg_2:number, _arg_3:number, _arg_4:string, _arg_5:number) + { + this._data = [k, _arg_2, _arg_3, _arg_4, _arg_5]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/ChatReviewGuideDecidesOnOfferMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/ChatReviewGuideDecidesOnOfferMessageComposer.ts new file mode 100644 index 00000000..89fb523e --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/ChatReviewGuideDecidesOnOfferMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class ChatReviewGuideDecidesOnOfferMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:boolean) + { + this._data = [k]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/ChatReviewGuideDetachedMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/ChatReviewGuideDetachedMessageComposer.ts new file mode 100644 index 00000000..9717dfe9 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/ChatReviewGuideDetachedMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class ChatReviewGuideDetachedMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor() + { + this._data = []; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/ChatReviewGuideVoteMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/ChatReviewGuideVoteMessageComposer.ts new file mode 100644 index 00000000..1ba5ae7b --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/ChatReviewGuideVoteMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class ChatReviewGuideVoteMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:number) + { + this._data = [k]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/ChatReviewSessionCreateMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/ChatReviewSessionCreateMessageComposer.ts new file mode 100644 index 00000000..a00b8a95 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/ChatReviewSessionCreateMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class ChatReviewSessionCreateMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:number, _arg_2:number) + { + this._data = [k, _arg_2]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/DeletePendingCallsForHelpMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/DeletePendingCallsForHelpMessageComposer.ts new file mode 100644 index 00000000..ad520572 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/DeletePendingCallsForHelpMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class DeletePendingCallsForHelpMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor() + { + this._data = []; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GetCfhStatusMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GetCfhStatusMessageComposer.ts new file mode 100644 index 00000000..29928871 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GetCfhStatusMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GetCfhStatusMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:boolean) + { + this._data = [k]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GetFaqCategoryMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GetFaqCategoryMessageComposer.ts new file mode 100644 index 00000000..1679d5ec --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GetFaqCategoryMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GetFaqCategoryMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(categoryId:number) + { + this._data = [categoryId]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GetFaqTextMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GetFaqTextMessageComposer.ts new file mode 100644 index 00000000..3a0b850c --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GetFaqTextMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GetFaqTextMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(questionId:number) + { + this._data = [questionId]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GetGuideReportingStatusMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GetGuideReportingStatusMessageComposer.ts new file mode 100644 index 00000000..a2183636 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GetGuideReportingStatusMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GetGuideReportingStatusMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor() + { + this._data = []; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GetPendingCallsForHelpMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GetPendingCallsForHelpMessageComposer.ts new file mode 100644 index 00000000..c08a4a2b --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GetPendingCallsForHelpMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GetPendingCallsForHelpMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor() + { + this._data = []; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GetQuizQuestionsComposer.ts b/src/nitro/communication/messages/outgoing/help/GetQuizQuestionsComposer.ts new file mode 100644 index 00000000..4bb85a3f --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GetQuizQuestionsComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GetQuizQuestionsComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:string) + { + this._data = [k]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionCreateMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionCreateMessageComposer.ts new file mode 100644 index 00000000..21f5233b --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionCreateMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionCreateMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:number, _arg_2:string) + { + this._data = [k, _arg_2]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionFeedbackMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionFeedbackMessageComposer.ts new file mode 100644 index 00000000..37f06331 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionFeedbackMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionFeedbackMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:boolean) + { + this._data = [k]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionGetRequesterRoomMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionGetRequesterRoomMessageComposer.ts new file mode 100644 index 00000000..2246034a --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionGetRequesterRoomMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionGetRequesterRoomMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor() + { + this._data = []; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionGuideDecidesMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionGuideDecidesMessageComposer.ts new file mode 100644 index 00000000..f78403dc --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionGuideDecidesMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionGuideDecidesMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:boolean) + { + this._data = [k]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionInviteRequesterMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionInviteRequesterMessageComposer.ts new file mode 100644 index 00000000..143a3aba --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionInviteRequesterMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionInviteRequesterMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor() + { + this._data = []; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionIsTypingMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionIsTypingMessageComposer.ts new file mode 100644 index 00000000..3bfcc871 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionIsTypingMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionIsTypingMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:boolean) + { + this._data = [k]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionMessageMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionMessageMessageComposer.ts new file mode 100644 index 00000000..fbb761b0 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionMessageMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionMessageMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:string) + { + this._data = [k]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionOnDutyUpdateMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionOnDutyUpdateMessageComposer.ts new file mode 100644 index 00000000..d171b14f --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionOnDutyUpdateMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionOnDutyUpdateMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:boolean, _arg_2:boolean, _arg_3:boolean, _arg_4:boolean) + { + this._data = [k, _arg_2, _arg_3, _arg_4]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionReportMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionReportMessageComposer.ts new file mode 100644 index 00000000..86e47cd3 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionReportMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionReportMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:string) + { + this._data = [k]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionRequesterCancelsMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionRequesterCancelsMessageComposer.ts new file mode 100644 index 00000000..c0ce2530 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionRequesterCancelsMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionRequesterCancelsMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor() + { + this._data = []; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/GuideSessionResolvedMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/GuideSessionResolvedMessageComposer.ts new file mode 100644 index 00000000..a868f874 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/GuideSessionResolvedMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class GuideSessionResolvedMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor() + { + this._data = []; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/PostQuizAnswersComposer.ts b/src/nitro/communication/messages/outgoing/help/PostQuizAnswersComposer.ts new file mode 100644 index 00000000..62b308dc --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/PostQuizAnswersComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class PostQuizAnswersComposer implements IMessageComposer +{ + private _data: any; + + constructor(quizCode:string, answerIds:number[]) + { + this._data = [quizCode, answerIds.length, ...answerIds]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/SearchFaqsMessageComposer.ts b/src/nitro/communication/messages/outgoing/help/SearchFaqsMessageComposer.ts new file mode 100644 index 00000000..cdfe8a73 --- /dev/null +++ b/src/nitro/communication/messages/outgoing/help/SearchFaqsMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer'; + +export class SearchFaqsMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(k:string) + { + this._data = [k]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/help/index.ts b/src/nitro/communication/messages/outgoing/help/index.ts index 7f5349c9..9824e8cf 100644 --- a/src/nitro/communication/messages/outgoing/help/index.ts +++ b/src/nitro/communication/messages/outgoing/help/index.ts @@ -1 +1,30 @@ +export * from './CallForHelpFromForumMessageMessageComposer'; +export * from './CallForHelpFromForumThreadMessageComposer'; +export * from './CallForHelpFromIMMessageComposer'; +export * from './CallForHelpFromPhotoMessageComposer'; +export * from './CallForHelpFromSelfieMessageComposer'; export * from './CallForHelpMessageComposer'; +export * from './ChatReviewGuideDecidesOnOfferMessageComposer'; +export * from './ChatReviewGuideDetachedMessageComposer'; +export * from './ChatReviewGuideVoteMessageComposer'; +export * from './ChatReviewSessionCreateMessageComposer'; +export * from './DeletePendingCallsForHelpMessageComposer'; +export * from './GetCfhStatusMessageComposer'; +export * from './GetFaqCategoryMessageComposer'; +export * from './GetFaqTextMessageComposer'; +export * from './GetGuideReportingStatusMessageComposer'; +export * from './GetPendingCallsForHelpMessageComposer'; +export * from './GetQuizQuestionsComposer'; +export * from './GuideSessionCreateMessageComposer'; +export * from './GuideSessionFeedbackMessageComposer'; +export * from './GuideSessionGetRequesterRoomMessageComposer'; +export * from './GuideSessionGuideDecidesMessageComposer'; +export * from './GuideSessionInviteRequesterMessageComposer'; +export * from './GuideSessionIsTypingMessageComposer'; +export * from './GuideSessionMessageMessageComposer'; +export * from './GuideSessionOnDutyUpdateMessageComposer'; +export * from './GuideSessionReportMessageComposer'; +export * from './GuideSessionRequesterCancelsMessageComposer'; +export * from './GuideSessionResolvedMessageComposer'; +export * from './PostQuizAnswersComposer'; +export * from './SearchFaqsMessageComposer'; From a5c5aa742d5be3dd16c53d0f979b1bb2b010e36b Mon Sep 17 00:00:00 2001 From: dank074 Date: Thu, 11 Nov 2021 22:47:52 -0600 Subject: [PATCH 2/2] move talent track packets to correct dir --- src/nitro/communication/NitroMessages.ts | 7 +-- .../messages/incoming/help/index.ts | 1 - .../communication/messages/incoming/index.ts | 1 + .../TalentTrackMessageEvent.ts} | 4 +- .../messages/incoming/talent/index.ts | 1 + .../parser/help/common/TalentTrackLevel.ts | 45 ----------------- .../common/TalentTrackLevelAchievement.ts | 49 ------------------- .../help/common/TalentTrackLevelItem.ts | 21 -------- .../messages/parser/help/common/index.ts | 3 -- .../messages/parser/help/index.ts | 2 - .../communication/messages/parser/index.ts | 1 + .../parser/talent/TalentTrackLevel.ts | 45 +++++++++++++++++ .../{help => talent}/TalentTrackParser.ts | 14 +++--- .../parser/talent/TalentTrackRewardProduct.ts | 21 ++++++++ .../messages/parser/talent/TalentTrackTask.ts | 49 +++++++++++++++++++ .../messages/parser/talent/index.ts | 4 ++ 16 files changed, 135 insertions(+), 133 deletions(-) rename src/nitro/communication/messages/incoming/{help/TalentTrackEvent.ts => talent/TalentTrackMessageEvent.ts} (70%) create mode 100644 src/nitro/communication/messages/incoming/talent/index.ts delete mode 100644 src/nitro/communication/messages/parser/help/common/TalentTrackLevel.ts delete mode 100644 src/nitro/communication/messages/parser/help/common/TalentTrackLevelAchievement.ts delete mode 100644 src/nitro/communication/messages/parser/help/common/TalentTrackLevelItem.ts delete mode 100644 src/nitro/communication/messages/parser/help/common/index.ts create mode 100644 src/nitro/communication/messages/parser/talent/TalentTrackLevel.ts rename src/nitro/communication/messages/parser/{help => talent}/TalentTrackParser.ts (77%) create mode 100644 src/nitro/communication/messages/parser/talent/TalentTrackRewardProduct.ts create mode 100644 src/nitro/communication/messages/parser/talent/TalentTrackTask.ts create mode 100644 src/nitro/communication/messages/parser/talent/index.ts diff --git a/src/nitro/communication/NitroMessages.ts b/src/nitro/communication/NitroMessages.ts index a93ec143..e15facaf 100644 --- a/src/nitro/communication/NitroMessages.ts +++ b/src/nitro/communication/NitroMessages.ts @@ -1,5 +1,5 @@ import { IMessageConfiguration } from '../../core/communication/messages/IMessageConfiguration'; -import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, ApproveNameMessageEvent, AvailabilityTimeMessageEvent, BadgePointLimitsEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, BuildersClubFurniCountMessageEvent, BuildersClubSubscriptionStatusMessageEvent, BundleDiscountRulesetMessageEvent, CallForHelpFromForumMessageMessageComposer, CallForHelpFromForumThreadMessageComposer, CallForHelpFromIMMessageComposer, CallForHelpFromPhotoMessageComposer, CallForHelpFromSelfieMessageComposer, CallForHelpMessageComposer, ChangeUserNameMessageComposer, ChangeUserNameResultMessageEvent, ChatReviewGuideDecidesOnOfferMessageComposer, ChatReviewGuideDetachedMessageComposer, ChatReviewGuideVoteMessageComposer, ChatReviewSessionCreateMessageComposer, CheckUserNameMessageComposer, CheckUserNameResultMessageEvent, CloseIssueDefaultActionMessageComposer, CloseIssuesMessageComposer, ClubGiftNotificationEvent, ControlYoutubeDisplayPlaybackMessageComposer, DeletePendingCallsForHelpMessageComposer, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, ForwardToASubmittableRoomMessageComposer, ForwardToRandomCompetitionRoomMessageComposer, FurnitureGroupInfoComposer, GetBonusRareInfoMessageComposer, GetCatalogPageExpirationComposer, GetCatalogPageWithEarliestExpiryComposer, GetCfhChatlogMessageComposer, GetCfhStatusMessageComposer, GetCurrentTimingCodeMessageComposer, GetDirectClubBuyAvailableComposer, GetFaqCategoryMessageComposer, GetFaqTextMessageComposer, GetForumsListMessageComposer, GetForumStatsMessageComposer, GetGiftMessageComposer, GetGuideReportingStatusMessageComposer, GetHabboBasicMembershipExtendOfferComposer, GetHabboClubExtendOfferMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetLimitedOfferAppearingNextComposer, GetMessagesMessageComposer, GetNextTargetedOfferComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetPendingCallsForHelpMessageComposer, GetQuizQuestionsComposer, GetRoomAdPurchaseInfoComposer, GetSeasonalCalendarDailyOfferComposer, GetSecondsUntilMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetThreadMessageComposer, GetThreadsMessageComposer, GetUnreadForumsCountMessageComposer, GetUserSongDisksMessageComposer, GetYoutubeDisplayStatusMessageComposer, GoToFlatMessageComposer, GroupBadgesComposer, GroupBadgesEvent, GuideSessionCreateMessageComposer, GuideSessionFeedbackMessageComposer, GuideSessionGetRequesterRoomMessageComposer, GuideSessionGuideDecidesMessageComposer, GuideSessionInviteRequesterMessageComposer, GuideSessionIsTypingMessageComposer, GuideSessionMessageMessageComposer, GuideSessionOnDutyUpdateMessageComposer, GuideSessionReportMessageComposer, GuideSessionRequesterCancelsMessageComposer, GuideSessionResolvedMessageComposer, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, IsBadgeRequestFulfilledEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MarkCatalogNewAdditionsPageOpenedComposer, MarketplaceBuyOfferComposer, MarketplaceRedeemCreditsComposer, MarketplaceRequesstItemStatsComposer, MarketplaceRequestComposer, MarketplaceRequestOffersComposer, MarketplaceRequestOwnItemsComposer, MarketplaceTakeItemBackComposer, ModerateMessageMessageComposer, ModerateThreadMessageComposer, ModToolPreferencesComposer, ModToolSanctionComposer, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PickIssuesMessageComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, PostMessageMessageComposer, PostQuizAnswersComposer, PurchaseBasicMembershipExtensionComposer, PurchaseRoomAdMessageComposer, PurchaseTargetedOfferComposer, PurchaseVipMembershipExtensionComposer, ReleaseIssuesMessageComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, ResetPhoneNumberStateMessageComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomCompetitionInitMessageComposer, RoomUnitGiveHandItemPetComposer, SearchFaqsMessageComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, SetPhoneNumberVerificationStatusMessageComposer, SetTargetedOfferStateComposer, SetYoutubeDisplayPlaylistMessageComposer, ShopTargetedOfferViewedComposer, SubmitRoomToCompetitionMessageComposer, TalentTrackEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, TryPhoneNumberMessageComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UpdateForumReadMarkerMessageComposer, UpdateForumSettingsMessageComposer, UpdateThreadMessageComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, VerifyCodeMessageComposer, VoteForRoomMessageComposer, WardrobeMessageEvent } from './messages'; +import { AchievementNotificationMessageEvent, ActivityPointNotificationMessageEvent, AddJukeboxDiskComposer, ApproveNameMessageComposer, ApproveNameMessageEvent, AvailabilityTimeMessageEvent, BadgePointLimitsEvent, BadgeReceivedEvent, BonusRareInfoMessageEvent, BuildersClubFurniCountMessageEvent, BuildersClubSubscriptionStatusMessageEvent, BundleDiscountRulesetMessageEvent, CallForHelpFromForumMessageMessageComposer, CallForHelpFromForumThreadMessageComposer, CallForHelpFromIMMessageComposer, CallForHelpFromPhotoMessageComposer, CallForHelpFromSelfieMessageComposer, CallForHelpMessageComposer, ChangeUserNameMessageComposer, ChangeUserNameResultMessageEvent, ChatReviewGuideDecidesOnOfferMessageComposer, ChatReviewGuideDetachedMessageComposer, ChatReviewGuideVoteMessageComposer, ChatReviewSessionCreateMessageComposer, CheckUserNameMessageComposer, CheckUserNameResultMessageEvent, CloseIssueDefaultActionMessageComposer, CloseIssuesMessageComposer, ClubGiftNotificationEvent, ControlYoutubeDisplayPlaybackMessageComposer, DeletePendingCallsForHelpMessageComposer, DirectSMSClubBuyAvailableMessageEvent, FigureUpdateEvent, ForwardToASubmittableRoomMessageComposer, ForwardToRandomCompetitionRoomMessageComposer, FurnitureGroupInfoComposer, GetBonusRareInfoMessageComposer, GetCatalogPageExpirationComposer, GetCatalogPageWithEarliestExpiryComposer, GetCfhChatlogMessageComposer, GetCfhStatusMessageComposer, GetCurrentTimingCodeMessageComposer, GetDirectClubBuyAvailableComposer, GetFaqCategoryMessageComposer, GetFaqTextMessageComposer, GetForumsListMessageComposer, GetForumStatsMessageComposer, GetGiftMessageComposer, GetGuideReportingStatusMessageComposer, GetHabboBasicMembershipExtendOfferComposer, GetHabboClubExtendOfferMessageComposer, GetInterstitialMessageComposer, GetJukeboxPlayListMessageComposer, GetLimitedOfferAppearingNextComposer, GetMessagesMessageComposer, GetNextTargetedOfferComposer, GetNowPlayingMessageComposer, GetOfficialSongIdMessageComposer, GetPendingCallsForHelpMessageComposer, GetQuizQuestionsComposer, GetRoomAdPurchaseInfoComposer, GetSeasonalCalendarDailyOfferComposer, GetSecondsUntilMessageComposer, GetSongInfoMessageComposer, GetSoundMachinePlayListMessageComposer, GetThreadMessageComposer, GetThreadsMessageComposer, GetUnreadForumsCountMessageComposer, GetUserSongDisksMessageComposer, GetYoutubeDisplayStatusMessageComposer, GoToFlatMessageComposer, GroupBadgesComposer, GroupBadgesEvent, GuideSessionCreateMessageComposer, GuideSessionFeedbackMessageComposer, GuideSessionGetRequesterRoomMessageComposer, GuideSessionGuideDecidesMessageComposer, GuideSessionInviteRequesterMessageComposer, GuideSessionIsTypingMessageComposer, GuideSessionMessageMessageComposer, GuideSessionOnDutyUpdateMessageComposer, GuideSessionReportMessageComposer, GuideSessionRequesterCancelsMessageComposer, GuideSessionResolvedMessageComposer, HabboClubExtendOfferMessageEvent, HotelClosedAndOpensEvent, HotelClosesAndWillOpenAtEvent, HotelWillCloseInMinutesEvent, InfoFeedEnableMessageEvent, InterstitialMessageEvent, InterstitialShownMessageComposer, IsBadgeRequestFulfilledEvent, IsOfferGiftableMessageEvent, JukeboxPlayListFullMessageEvent, JukeboxSongDisksMessageEvent, LimitedOfferAppearingNextMessageEvent, MaintenanceStatusMessageEvent, MarkCatalogNewAdditionsPageOpenedComposer, MarketplaceBuyOfferComposer, MarketplaceRedeemCreditsComposer, MarketplaceRequesstItemStatsComposer, MarketplaceRequestComposer, MarketplaceRequestOffersComposer, MarketplaceRequestOwnItemsComposer, MarketplaceTakeItemBackComposer, ModerateMessageMessageComposer, ModerateThreadMessageComposer, ModToolPreferencesComposer, ModToolSanctionComposer, MysteryBoxKeysEvent, NotEnoughBalanceMessageEvent, NowPlayingMessageEvent, OfficialSongIdMessageEvent, OpenCampaignCalendarDoorAsStaffComposer, OpenCampaignCalendarDoorComposer, PetExperienceEvent, PetMountComposer, PetSupplementComposer, PickIssuesMessageComposer, PlayListMessageEvent, PlayListSongAddedMessageEvent, PostMessageMessageComposer, PostQuizAnswersComposer, PurchaseBasicMembershipExtensionComposer, PurchaseRoomAdMessageComposer, PurchaseTargetedOfferComposer, PurchaseVipMembershipExtensionComposer, ReleaseIssuesMessageComposer, RemoveAllRightsMessageComposer, RemoveJukeboxDiskComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, ResetPhoneNumberStateMessageComposer, RoomAdErrorEvent, RoomAdPurchaseInfoEvent, RoomCompetitionInitMessageComposer, RoomUnitGiveHandItemPetComposer, SearchFaqsMessageComposer, SeasonalCalendarDailyOfferMessageEvent, SellablePetPalettesMessageEvent, SetPhoneNumberVerificationStatusMessageComposer, SetTargetedOfferStateComposer, SetYoutubeDisplayPlaylistMessageComposer, ShopTargetedOfferViewedComposer, SubmitRoomToCompetitionMessageComposer, TalentTrackMessageEvent, TargetedOfferEvent, TargetedOfferNotFoundEvent, TogglePetBreedingComposer, TogglePetRidingComposer, TraxSongInfoMessageEvent, TryPhoneNumberMessageComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UpdateForumReadMarkerMessageComposer, UpdateForumSettingsMessageComposer, UpdateThreadMessageComposer, UsePetProductComposer, UserSongDisksInventoryMessageEvent, VerifyCodeMessageComposer, VoteForRoomMessageComposer, WardrobeMessageEvent } from './messages'; import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent'; import { BotAddedToInventoryEvent, BotInventoryMessageEvent, BotReceivedMessageEvent, BotRemovedFromInventoryEvent } from './messages/incoming/bots'; import { CfhSanctionMessageEvent, CfhTopicsInitEvent, SanctionStatusEvent } from './messages/incoming/callforhelp'; @@ -601,8 +601,6 @@ export class NitroMessages implements IMessageConfiguration // HELP this._events.set(IncomingHeader.CFH_DISABLED_NOTIFY, CallForHelpDisabledNotifyMessageEvent); this._events.set(IncomingHeader.CFH_RESULT_MESSAGE, CallForHelpResultMessageEvent); - this._events.set(IncomingHeader.HELPER_TALENT_TRACK, TalentTrackEvent); - // INVENTORY this._events.set(IncomingHeader.ACHIEVEMENT_PROGRESSED, AchievementEvent); @@ -813,6 +811,9 @@ export class NitroMessages implements IMessageConfiguration this._events.set(IncomingHeader.TRAX_SONG_INFO, TraxSongInfoMessageEvent); this._events.set(IncomingHeader.USER_SONG_DISKS_INVENTORY, UserSongDisksInventoryMessageEvent); + // TALENT + this._events.set(IncomingHeader.HELPER_TALENT_TRACK, TalentTrackMessageEvent); + // USER this._events.set(IncomingHeader.IN_CLIENT_LINK, InClientLinkEvent); this._events.set(IncomingHeader.USER_IGNORED, IgnoredUsersEvent); diff --git a/src/nitro/communication/messages/incoming/help/index.ts b/src/nitro/communication/messages/incoming/help/index.ts index f3c3017a..ed4c56df 100644 --- a/src/nitro/communication/messages/incoming/help/index.ts +++ b/src/nitro/communication/messages/incoming/help/index.ts @@ -1,3 +1,2 @@ export * from './CallForHelpDisabledNotifyMessageEvent'; export * from './CallForHelpResultMessageEvent'; -export * from './TalentTrackEvent'; diff --git a/src/nitro/communication/messages/incoming/index.ts b/src/nitro/communication/messages/incoming/index.ts index 68200572..b9e74ff9 100644 --- a/src/nitro/communication/messages/incoming/index.ts +++ b/src/nitro/communication/messages/incoming/index.ts @@ -47,6 +47,7 @@ export * from './room/unit/chat'; export * from './roomevents'; export * from './security'; export * from './sound'; +export * from './talent'; export * from './user'; export * from './user/access'; export * from './user/data'; diff --git a/src/nitro/communication/messages/incoming/help/TalentTrackEvent.ts b/src/nitro/communication/messages/incoming/talent/TalentTrackMessageEvent.ts similarity index 70% rename from src/nitro/communication/messages/incoming/help/TalentTrackEvent.ts rename to src/nitro/communication/messages/incoming/talent/TalentTrackMessageEvent.ts index 488e9f42..7fd14982 100644 --- a/src/nitro/communication/messages/incoming/help/TalentTrackEvent.ts +++ b/src/nitro/communication/messages/incoming/talent/TalentTrackMessageEvent.ts @@ -1,8 +1,8 @@ import { IMessageEvent } from '../../../../../core/communication/messages/IMessageEvent'; import { MessageEvent } from '../../../../../core/communication/messages/MessageEvent'; -import { TalentTrackParser } from '../../parser/help/TalentTrackParser'; +import { TalentTrackParser } from '../../parser/talent/TalentTrackParser'; -export class TalentTrackEvent extends MessageEvent implements IMessageEvent +export class TalentTrackMessageEvent extends MessageEvent implements IMessageEvent { constructor(callBack: Function) { diff --git a/src/nitro/communication/messages/incoming/talent/index.ts b/src/nitro/communication/messages/incoming/talent/index.ts new file mode 100644 index 00000000..ebe3f002 --- /dev/null +++ b/src/nitro/communication/messages/incoming/talent/index.ts @@ -0,0 +1 @@ +export * from './TalentTrackMessageEvent'; diff --git a/src/nitro/communication/messages/parser/help/common/TalentTrackLevel.ts b/src/nitro/communication/messages/parser/help/common/TalentTrackLevel.ts deleted file mode 100644 index ffc487bd..00000000 --- a/src/nitro/communication/messages/parser/help/common/TalentTrackLevel.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { TalentTrackLevelAchievement } from './TalentTrackLevelAchievement'; -import { TalentTrackLevelItem } from './TalentTrackLevelItem'; - -export class TalentTrackLevel -{ - private _level: number; - private _state: number; - private _achievements: TalentTrackLevelAchievement[] - private _perks: string[]; - private _items: TalentTrackLevelItem[]; - - constructor(level: number, state: number, achievements: TalentTrackLevelAchievement[], perks: string[], items: TalentTrackLevelItem[]) - { - this._level = level; - this._state = state; - this._achievements = achievements; - this._perks = perks; - this._items = items; - } - - public get level(): number - { - return this._level; - } - - public get state(): number - { - return this._state; - } - - public get achievements(): TalentTrackLevelAchievement[] - { - return this._achievements; - } - - public get perks(): string[] - { - return this._perks; - } - - public get items(): TalentTrackLevelItem[] - { - return this._items; - } -} diff --git a/src/nitro/communication/messages/parser/help/common/TalentTrackLevelAchievement.ts b/src/nitro/communication/messages/parser/help/common/TalentTrackLevelAchievement.ts deleted file mode 100644 index cd77c5d7..00000000 --- a/src/nitro/communication/messages/parser/help/common/TalentTrackLevelAchievement.ts +++ /dev/null @@ -1,49 +0,0 @@ -export class TalentTrackLevelAchievement -{ - private _id: number; - private _index: number; - private _achievementCode: string; - private _state: number; - private _progress: number; - private _achievementProgress: number; - - constructor(id: number, index: number, achievementCode: string, state: number, progress: number, achievementProgress: number) - { - this._id = id; - this._index = index; - this._achievementCode = achievementCode; - this._state = state; - this._progress = progress; - this._achievementProgress = achievementProgress; - } - - public get id(): number - { - return this._id; - } - - public get index(): number - { - return this._index; - } - - public get achievementCode(): string - { - return this._achievementCode; - } - - public get state(): number - { - return this._state; - } - - public get progress(): number - { - return this._progress; - } - - public get achievementProgress(): number - { - return this._achievementProgress; - } -} diff --git a/src/nitro/communication/messages/parser/help/common/TalentTrackLevelItem.ts b/src/nitro/communication/messages/parser/help/common/TalentTrackLevelItem.ts deleted file mode 100644 index bf59dc07..00000000 --- a/src/nitro/communication/messages/parser/help/common/TalentTrackLevelItem.ts +++ /dev/null @@ -1,21 +0,0 @@ -export class TalentTrackLevelItem -{ - private _name: string; - private _unknownInt: number; - - constructor(name: string, unknownInt: number) - { - this._name = name; - this._unknownInt = unknownInt; - } - - public get name(): string - { - return this._name; - } - - public get unknownInt(): number - { - return this._unknownInt; - } -} diff --git a/src/nitro/communication/messages/parser/help/common/index.ts b/src/nitro/communication/messages/parser/help/common/index.ts deleted file mode 100644 index 22aefb71..00000000 --- a/src/nitro/communication/messages/parser/help/common/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './TalentTrackLevel'; -export * from './TalentTrackLevelAchievement'; -export * from './TalentTrackLevelItem'; diff --git a/src/nitro/communication/messages/parser/help/index.ts b/src/nitro/communication/messages/parser/help/index.ts index c6f0c7d9..5cd9ff49 100644 --- a/src/nitro/communication/messages/parser/help/index.ts +++ b/src/nitro/communication/messages/parser/help/index.ts @@ -1,4 +1,2 @@ export * from './CallForHelpDisabledNotifyMessageParser'; export * from './CallForHelpResultMessageParser'; -export * from './common'; -export * from './TalentTrackParser'; diff --git a/src/nitro/communication/messages/parser/index.ts b/src/nitro/communication/messages/parser/index.ts index 8cac1987..a2660f7f 100644 --- a/src/nitro/communication/messages/parser/index.ts +++ b/src/nitro/communication/messages/parser/index.ts @@ -24,4 +24,5 @@ export * from './room'; export * from './roomevents'; export * from './security'; export * from './sound'; +export * from './talent'; export * from './user'; diff --git a/src/nitro/communication/messages/parser/talent/TalentTrackLevel.ts b/src/nitro/communication/messages/parser/talent/TalentTrackLevel.ts new file mode 100644 index 00000000..03d8c4db --- /dev/null +++ b/src/nitro/communication/messages/parser/talent/TalentTrackLevel.ts @@ -0,0 +1,45 @@ +import { TalentTrackRewardProduct } from './TalentTrackRewardProduct'; +import { TalentTrackTask } from './TalentTrackTask'; + +export class TalentTrackLevel +{ + private _level: number; + private _state: number; + private _tasks: TalentTrackTask[] + private _rewardPerks: string[]; + private _rewardProducts: TalentTrackRewardProduct[]; + + constructor(level: number, state: number, achievements: TalentTrackTask[], perks: string[], items: TalentTrackRewardProduct[]) + { + this._level = level; + this._state = state; + this._tasks = achievements; + this._rewardPerks = perks; + this._rewardProducts = items; + } + + public get level(): number + { + return this._level; + } + + public get state(): number + { + return this._state; + } + + public get tasks(): TalentTrackTask[] + { + return this._tasks; + } + + public get perks(): string[] + { + return this._rewardPerks; + } + + public get items(): TalentTrackRewardProduct[] + { + return this._rewardProducts; + } +} diff --git a/src/nitro/communication/messages/parser/help/TalentTrackParser.ts b/src/nitro/communication/messages/parser/talent/TalentTrackParser.ts similarity index 77% rename from src/nitro/communication/messages/parser/help/TalentTrackParser.ts rename to src/nitro/communication/messages/parser/talent/TalentTrackParser.ts index 71e97ccd..4cf2984d 100644 --- a/src/nitro/communication/messages/parser/help/TalentTrackParser.ts +++ b/src/nitro/communication/messages/parser/talent/TalentTrackParser.ts @@ -1,7 +1,7 @@ import { IMessageDataWrapper, IMessageParser } from '../../../../../core'; -import { TalentTrackLevel } from './common/TalentTrackLevel'; -import { TalentTrackLevelAchievement } from './common/TalentTrackLevelAchievement'; -import { TalentTrackLevelItem } from './common/TalentTrackLevelItem'; +import { TalentTrackLevel } from './TalentTrackLevel'; +import { TalentTrackRewardProduct } from './TalentTrackRewardProduct'; +import { TalentTrackTask } from './TalentTrackTask'; export class TalentTrackParser implements IMessageParser { @@ -30,7 +30,7 @@ export class TalentTrackParser implements IMessageParser const levelId = wrapper.readInt(); const levelState = wrapper.readInt(); - const levelAchievements: TalentTrackLevelAchievement[] = []; + const levelAchievements: TalentTrackTask[] = []; const achievementsCount = wrapper.readInt(); for(let j = 0; j < achievementsCount; j++) @@ -42,7 +42,7 @@ export class TalentTrackParser implements IMessageParser const progress = wrapper.readInt(); const achievementProgress = wrapper.readInt(); - levelAchievements.push(new TalentTrackLevelAchievement(id, index, code, state, progress, achievementProgress)); + levelAchievements.push(new TalentTrackTask(id, index, code, state, progress, achievementProgress)); } const levelPerks: string[] = []; @@ -50,7 +50,7 @@ export class TalentTrackParser implements IMessageParser for(let j = 0; j < perksCount; j++) levelPerks.push(wrapper.readString()); - const levelItems: TalentTrackLevelItem[] = []; + const levelItems: TalentTrackRewardProduct[] = []; const itemsCount = wrapper.readInt(); for(let j = 0; j < itemsCount; j++) @@ -58,7 +58,7 @@ export class TalentTrackParser implements IMessageParser const name = wrapper.readString(); const unknownInt = wrapper.readInt(); - levelItems.push(new TalentTrackLevelItem(name, unknownInt)); + levelItems.push(new TalentTrackRewardProduct(name, unknownInt)); } this._levels.push(new TalentTrackLevel(levelId, levelState, levelAchievements, levelPerks, levelItems)); diff --git a/src/nitro/communication/messages/parser/talent/TalentTrackRewardProduct.ts b/src/nitro/communication/messages/parser/talent/TalentTrackRewardProduct.ts new file mode 100644 index 00000000..24aaaa99 --- /dev/null +++ b/src/nitro/communication/messages/parser/talent/TalentTrackRewardProduct.ts @@ -0,0 +1,21 @@ +export class TalentTrackRewardProduct +{ + private _productCode: string; + private _vipDays: number; + + constructor(name: string, unknownInt: number) + { + this._productCode = name; + this._vipDays = unknownInt; + } + + public get productCode(): string + { + return this._productCode; + } + + public get vipDays(): number + { + return this._vipDays; + } +} diff --git a/src/nitro/communication/messages/parser/talent/TalentTrackTask.ts b/src/nitro/communication/messages/parser/talent/TalentTrackTask.ts new file mode 100644 index 00000000..a249b11a --- /dev/null +++ b/src/nitro/communication/messages/parser/talent/TalentTrackTask.ts @@ -0,0 +1,49 @@ +export class TalentTrackTask +{ + private _id: number; + private _requiredLevel: number; + private _badgeCode: string; + private _state: number; + private _currentScore: number; + private _totalScore: number; + + constructor(id: number, requiredLevel: number, badgeCode: string, state: number, currentScore: number, totalScore: number) + { + this._id = id; + this._requiredLevel = requiredLevel; + this._badgeCode = badgeCode; + this._state = state; + this._currentScore = currentScore; + this._totalScore = totalScore; + } + + public get id(): number + { + return this._id; + } + + public get requiredLevel(): number + { + return this._requiredLevel; + } + + public get badgeCode(): string + { + return this._badgeCode; + } + + public get state(): number + { + return this._state; + } + + public get currentScore(): number + { + return this._currentScore; + } + + public get totalScore(): number + { + return this._totalScore; + } +} diff --git a/src/nitro/communication/messages/parser/talent/index.ts b/src/nitro/communication/messages/parser/talent/index.ts new file mode 100644 index 00000000..7df63262 --- /dev/null +++ b/src/nitro/communication/messages/parser/talent/index.ts @@ -0,0 +1,4 @@ +export * from './TalentTrackLevel'; +export * from './TalentTrackParser'; +export * from './TalentTrackRewardProduct'; +export * from './TalentTrackTask';