public byte[] GetPick(OSDMap request)
        {
            UUID principalID = request["PickUUID"].AsUUID();

            ProfilePickInfo Pick   = ProfileConnector.GetPick(principalID);
            OSDMap          result = Pick != null?Pick.ToOSD() : new OSDMap();

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

            return(encoding.GetBytes(xmlString));
        }
Exemplo n.º 2
0
        public void HandlePickInfoRequest(Object sender, string method, List <String> args)
        {
            if (!(sender is IClientAPI))
            {
                return;
            }

            IClientAPI remoteClient = (IClientAPI)sender;
            UUID       PickUUID     = UUID.Parse(args[1]);

            ProfilePickInfo pick = ProfileFrontend.GetPick(PickUUID);

            if (pick != null)
            {
                remoteClient.SendPickInfoReply(pick.PickUUID, pick.CreatorUUID, pick.TopPick == 1 ? true : false, pick.ParcelUUID, pick.Name, pick.Description, pick.SnapshotUUID, pick.User, pick.OriginalName, pick.SimName, pick.GlobalPos, pick.SortOrder, pick.Enabled == 1 ? true : false);
            }
        }