GetAllRooms() public method

public GetAllRooms ( int startIndex, int maxResults = 100, bool includePrivate = false, bool includeArchived = false ) : HipchatGetAllRoomsResponse
startIndex int
maxResults int
includePrivate bool
includeArchived bool
return HipchatGetAllRoomsResponse
コード例 #1
0
        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;
        }