Example #1
0
        static void Main(string[] args)
        {
            if (args.Length < 4)
            {
                Console.WriteLine("\nConnecting to Heroes Lounge via API and downloading things!");
                APIhandler.getTeamData();
                APIhandler.sortTeamPagesIntoTeams();

                do
                {
                    Console.WriteLine("\nSelect: 1) Team 2) Sloth:\n");
                    string input = Console.ReadLine();
                    if (input == "team" || input == "Team" || input == "1")
                    {
                        Console.WriteLine("\nEnter Team name:\n");
                        var teamname = Console.ReadLine();
                        getTeamStats(teamname);
                    }
                    else
                    {
                        if (input == "Sloth" || input == "sloth" || input == "2")
                        {
                            Console.WriteLine("This feature is not yet implemented.");
                        }
                    }

                    Console.WriteLine("\n\nPress x to terminate or any other key to continue.");
                }while(Console.ReadKey().Key != ConsoleKey.X);
            }
        }