byte[] GetExperienceInfos(Dictionary <string, object> request)
        {
            List <UUID> experiences = new List <UUID>();
            int         i           = 0;

            while (true)
            {
                string key = string.Format("id_{0}", i);
                if (request.ContainsKey(key) == false)
                {
                    break;
                }

                UUID experience_id;

                if (!UUID.TryParse(request[key].ToString(), out experience_id))
                {
                    break;
                }

                experiences.Add(experience_id);
                i++;
            }

            ExperienceInfo[] infos = m_service.GetExperienceInfos(experiences.ToArray());

            Dictionary <string, object> result = new Dictionary <string, object>();

            if ((infos == null) || ((infos != null) && (infos.Length == 0)))
            {
                result["result"] = "null";
            }
            else
            {
                int n = 0;
                foreach (ExperienceInfo ex in infos)
                {
                    if (ex == null)
                    {
                        continue;
                    }
                    Dictionary <string, object> rinfoDict = ex.ToDictionary();
                    result["experience_" + n] = rinfoDict;
                    n++;
                }
            }

            string xmlString = ServerUtils.BuildXmlResponse(result);

            return(Util.UTF8NoBomEncoding.GetBytes(xmlString));
        }
 public ExperienceInfo[] GetExperienceInfos(UUID[] experiences)
 {
     return(m_service.GetExperienceInfos(experiences));
 }
 public ExperienceInfo[] GetExperienceInfos(UUID[] experiences)
 {
     return(m_remoteConnector.GetExperienceInfos(experiences));
 }