public void PickInfoUpdate(IClientAPI remoteClient, UUID pickID, UUID creatorID, bool topPick, string name,
                                   string desc, UUID snapshotID, int sortOrder, bool enabled, Vector3d globalPos)
        {
            IScenePresence p = remoteClient.Scene.GetScenePresence(remoteClient.AgentId);

            UUID   parceluuid    = p.CurrentParcelUUID;
            string user          = "******";
            string OrigionalName = "(unknown)";

            Vector3 pos_global = new Vector3(globalPos);

            IParcelManagementModule parcelManagement =
                remoteClient.Scene.RequestModuleInterface <IParcelManagementModule>();

            if (parcelManagement != null)
            {
                ILandObject targetlandObj = parcelManagement.GetLandObject(pos_global.X / Constants.RegionSize,
                                                                           pos_global.Y / Constants.RegionSize);

                if (targetlandObj != null)
                {
                    UserAccount parcelOwner =
                        remoteClient.Scene.UserAccountService.GetUserAccount(remoteClient.AllScopeIDs,
                                                                             targetlandObj.LandData
                                                                             .OwnerID);
                    if (parcelOwner != null)
                    {
                        user = parcelOwner.Name;
                    }

                    parceluuid = targetlandObj.LandData.InfoUUID;

                    OrigionalName = targetlandObj.LandData.Name;
                }
            }

            ProfilePickInfo pick = new ProfilePickInfo
            {
                PickUUID     = pickID,
                CreatorUUID  = creatorID,
                TopPick      = topPick ? 1 : 0,
                ParcelUUID   = parceluuid,
                Name         = name,
                Description  = desc,
                SnapshotUUID = snapshotID,
                User         = user,
                OriginalName = OrigionalName,
                SimName      = remoteClient.Scene.RegionInfo.RegionName,
                GlobalPos    = pos_global,
                SortOrder    = sortOrder,
                Enabled      = enabled ? 1 : 0
            };

            ProfileFrontend.AddPick(pick);
        }
        public byte[] AddPick(OSDMap request)
        {
            ProfilePickInfo info = new ProfilePickInfo();

            info.FromOSD((OSDMap)request["Pick"]);

            ProfileConnector.AddPick(info);

            string xmlString = OSDParser.SerializeJsonString(new OSDMap());
            //MainConsole.Instance.DebugFormat("[AuroraDataServerPostHandler]: resp string: {0}", xmlString);
            UTF8Encoding encoding = new UTF8Encoding();

            return(encoding.GetBytes(xmlString));
        }