Beispiel #1
0
 public void PopulateUserDataFromCodewars(CodewarsUsersGroup users)
 {
     foreach (CodewarsUser user in users.Users)
     {
         populateScore(user);
     }
 }
        public static void Main(string[] args)
        {
            Console.WriteLine("Getting users...");
            CodewarsUsersGroup codewarsUsersGroup = new CodewarsUsersGroup($"Usernames{System.IO.Path.DirectorySeparatorChar}Usernames.csv");

            if (codewarsUsersGroup == null || codewarsUsersGroup.TotalCount < 1)
            {
                Console.WriteLine("No users found.");
                Console.ReadLine();
                return;
            }

            new Controller(codewarsUsersGroup).DisplayInitialOptions();
        }
 public Controller(CodewarsUsersGroup codewarsUsersGroup)
 {
     CodewarsUsersGroup = codewarsUsersGroup;
 }