/**
  * API: rooms by ids
  *
  * @param room id array
  *
  * @return rooms
  *
  * Room
  *
  */
 public IEnumerable<WebimRoom> RoomsByIds(String uid, String[] ids)
 {
     // TODO: 示例代码,需要替换
     List<WebimRoom> rooms = new List<WebimRoom>();
     WebimRoom room = new WebimRoom("room1", "Room1");
     room.Avatar = "/static/images/room.png";
     rooms.Add(room);
     return rooms;
 }
 /**
 * 根据roomId读取群组
 *
 * @param roomId
 * @return WebimRoom
 */
 public WebimRoom FindRoom(string roomId)
 {
     // TODO: 示例代码,需要替换
     if (roomId.Equals("room1"))
     {
         WebimRoom room = new WebimRoom("room1", "Room1");
         room.Avatar = "/static/images/room.png";
         return room;
     }
     return null;
 }
 private WebimRoom Mapping(GroupEntity e)
 {
     string gid = e.GroupId.ToString();
     WebimRoom room = new WebimRoom(gid, e.GroupName);
     room.AllCount = e.MemberCount;
     room.Avatar = SiteUrls.Instance().LogoUrl(e.Logo, TenantTypeIds.Instance().Group(), ImageSizeTypeKeys.Instance().Small());
     room.Url = SiteUrls.Instance().GroupHome(e.GroupId);
     return room;
 }