public static List <string> GetAllRooms(string token) { HipchatClient client = new HipchatClient(token); HipchatGetAllRoomsResponse rooms = client.GetAllRooms(); List <string> RoomNames = new List <string>(); foreach (HipchatGetAllRoomsResponseItems room in rooms.Items) { RoomNames.Add(room.Name); } return(RoomNames); }