From c9d9031478e33b40f4243a4a1df8017de826371a Mon Sep 17 00:00:00 2001 From: dank074 Date: Wed, 18 Aug 2021 21:11:21 -0500 Subject: [PATCH] added GetExtendedProfileByNameMessageComposer --- src/nitro/communication/NitroMessages.ts | 3 ++- .../messages/outgoing/OutgoingHeader.ts | 1 + ...GetExtendedProfileByNameMessageComposer.ts | 21 +++++++++++++++++++ .../messages/outgoing/user/data/index.ts | 1 + 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/nitro/communication/messages/outgoing/user/data/GetExtendedProfileByNameMessageComposer.ts diff --git a/src/nitro/communication/NitroMessages.ts b/src/nitro/communication/NitroMessages.ts index 62b97436..417b95b2 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 { ApproveNameMessageComposer, BadgeReceivedEvent, BonusRareInfoMessageEvent, CatalogApproveNameResultEvent, ChangeUserNameResultMessageEvent, FurnitureGuildInfoComposer, GetBonusRareInfoMessageComposer, MysteryBoxKeysEvent, PetExperienceEvent, PetMountComposer, PetSupplementComposer, RemoveAllRightsMessageComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, RoomUnitGiveHandItemPetComposer, SellablePetPalettesEvent, TogglePetBreedingComposer, TogglePetRidingComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer } from './messages'; +import { ApproveNameMessageComposer, BadgeReceivedEvent, BonusRareInfoMessageEvent, CatalogApproveNameResultEvent, ChangeUserNameResultMessageEvent, FurnitureGuildInfoComposer, GetBonusRareInfoMessageComposer, GetExtendedProfileByNameMessageComposer, MysteryBoxKeysEvent, PetExperienceEvent, PetMountComposer, PetSupplementComposer, RemoveAllRightsMessageComposer, RemoveOwnRoomRightsRoomMessageComposer, RemovePetSaddleComposer, RoomUnitGiveHandItemPetComposer, SellablePetPalettesEvent, TogglePetBreedingComposer, TogglePetRidingComposer, UnseenResetCategoryComposer, UnseenResetItemsComposer, UsePetProductComposer } from './messages'; import { AvailabilityStatusMessageEvent } from './messages/incoming/availability/AvailabilityStatusMessageEvent'; import { CameraPublishStatusMessageEvent } from './messages/incoming/camera/CameraPublishStatusMessageEvent'; import { CameraPurchaseOKMessageEvent } from './messages/incoming/camera/CameraPurchaseOKMessageEvent'; @@ -1070,6 +1070,7 @@ export class NitroMessages implements IMessageConfiguration this._composers.set(OutgoingHeader.USER_HOME_ROOM, UserHomeRoomComposer); this._composers.set(OutgoingHeader.USER_MOTTO, UserMottoComposer); this._composers.set(OutgoingHeader.USER_PROFILE, UserProfileComposer); + this._composers.set(OutgoingHeader.USER_PROFILE_BY_NAME, GetExtendedProfileByNameMessageComposer); this._composers.set(OutgoingHeader.MESSENGER_RELATIONSHIPS, UserRelationshipsComposer); // MANNEQUIN diff --git a/src/nitro/communication/messages/outgoing/OutgoingHeader.ts b/src/nitro/communication/messages/outgoing/OutgoingHeader.ts index 5d152c36..4997404c 100644 --- a/src/nitro/communication/messages/outgoing/OutgoingHeader.ts +++ b/src/nitro/communication/messages/outgoing/OutgoingHeader.ts @@ -176,6 +176,7 @@ export class OutgoingHeader public static USER_OUTFITS = 2742; public static USER_PETS = 3095; public static USER_PROFILE = 3265; + public static USER_PROFILE_BY_NAME = 2249; public static USER_RESPECT = 2694; public static USER_SETTINGS = 2388; public static USER_SETTINGS_CAMERA = 1461; diff --git a/src/nitro/communication/messages/outgoing/user/data/GetExtendedProfileByNameMessageComposer.ts b/src/nitro/communication/messages/outgoing/user/data/GetExtendedProfileByNameMessageComposer.ts new file mode 100644 index 00000000..6fc9f38a --- /dev/null +++ b/src/nitro/communication/messages/outgoing/user/data/GetExtendedProfileByNameMessageComposer.ts @@ -0,0 +1,21 @@ +import { IMessageComposer } from '../../../../../../core'; + +export class GetExtendedProfileByNameMessageComposer implements IMessageComposer> +{ + private _data: ConstructorParameters; + + constructor(username: string) + { + this._data = [ username ]; + } + + public getMessageArray() + { + return this._data; + } + + public dispose(): void + { + return; + } +} diff --git a/src/nitro/communication/messages/outgoing/user/data/index.ts b/src/nitro/communication/messages/outgoing/user/data/index.ts index ff4e27f2..a71a6a48 100644 --- a/src/nitro/communication/messages/outgoing/user/data/index.ts +++ b/src/nitro/communication/messages/outgoing/user/data/index.ts @@ -1,3 +1,4 @@ +export * from './GetExtendedProfileByNameMessageComposer'; export * from './GetIgnoredUsersComposer'; export * from './IgnoreUserComposer'; export * from './IgnoreUserIdComposer';