Exemplo n.º 1
0
        internal static Dictionary <string, string> GetTrollFlags()
        {
            if (troll_flags != null)
            {
                return(troll_flags);
            }
            GetBoardsResponse boardsResponse = MakeRequest <GetBoardsResponse>("boards.json");

            troll_flags = boardsResponse.troll_flags;
            boards      = boardsResponse.boards;
            return(troll_flags);
        }
Exemplo n.º 2
0
        public static IEnumerable <Board> GetBoards()
        {
            if (boards != null)
            {
                return(boards);
            }
            GetBoardsResponse boardsResponse = MakeRequest <GetBoardsResponse>("boards.json");

            troll_flags = boardsResponse.troll_flags;
            boards      = boardsResponse.boards;
            return(boards);
        }