public List <GroupRoleMembersData> GetGroupRoleMembers(string RequestingAgentID, UUID GroupID) { List <ExtendedGroupRoleMembersData> _rm = m_GroupsService.GetGroupRoleMembers(RequestingAgentID, GroupID); if (_rm != null && _rm.Count > 0) { List <GroupRoleMembersData> rm = _rm.ConvertAll <GroupRoleMembersData>(new Converter <ExtendedGroupRoleMembersData, GroupRoleMembersData>(m_ForeignImporter.ConvertGroupRoleMembersData)); return(rm); } return(new List <GroupRoleMembersData>()); }
byte[] HandleGetRoleMembers(Dictionary <string, object> request) { Dictionary <string, object> result = new Dictionary <string, object>(); if (!request.ContainsKey("RequestingAgentID") || !request.ContainsKey("GroupID")) { NullResult(result, "Bad network data"); } else { UUID groupID = new UUID(request["GroupID"].ToString()); string requestingAgentID = request["RequestingAgentID"].ToString(); List <ExtendedGroupRoleMembersData> rmembers = m_GroupsService.GetGroupRoleMembers(requestingAgentID, groupID); if (rmembers == null || (rmembers != null && rmembers.Count == 0)) { NullResult(result, "No members"); } else { Dictionary <string, object> dict = new Dictionary <string, object>(); int i = 0; foreach (ExtendedGroupRoleMembersData rm in rmembers) { dict["rm-" + i++] = GroupsDataUtils.GroupRoleMembersData(rm); } result["RESULT"] = dict; } } string xmlString = ServerUtils.BuildXmlResponse(result); //m_log.DebugFormat("[XXX]: resp string: {0}", xmlString); return(Util.UTF8NoBomEncoding.GetBytes(xmlString)); }