Exemple #1
0
        public static void Main(string[] args)
        {
            Lawyer    lawyer = new Lawyer();
            Moderator meg    = new Moderator();
            Reader    reader = new Reader();
            //List<Legend> legends = reader.ReadLegends();

            int num = lawyer.GetInt("How many Pokemon do you need to add? ");

            meg.AddPokemon(num);
            //for (int i = 0; i < num; i++)
            //{



            //}
            Console.WriteLine("done");

            Console.ReadLine();
            //SheetsService sheetsService = new SheetsService(new BaseClientService.Initializer
            //{
            //    HttpClientInitializer = GetCredential(),
            //    ApplicationName = "Google-SheetsSample/0.1",
            //});

            //// TODO: Assign values to desired properties of `requestBody`:
            //Spreadsheet requestBody = new Spreadsheet();

            //SpreadsheetsResource.CreateRequest request = sheetsService.Spreadsheets.Create(requestBody);

            //// To execute asynchronously in an async method, replace `request.Execute()` as shown:
            //Data.Spreadsheet response = request.Execute();
            //// Data.Spreadsheet response = await request.ExecuteAsync();

            //// TODO: Change code below to process the `response` object:
            //Console.WriteLine(JsonConvert.SerializeObject(response));


            //SheetsService sheetsService = new SheetsService(new BaseClientService.Initializer
            //{
            //    HttpClientInitializer = GetCredential(),
            //    ApplicationName = "Google-SheetsSample/0.1",
            //});

            //// TODO: Assign values to desired properties of `requestBody`:
            //Data.Spreadsheet requestBody = new Data.Spreadsheet();

            //SpreadsheetsResource.CreateRequest request = sheetsService.Spreadsheets.Create(requestBody);

            //// To execute asynchronously in an async method, replace `request.Execute()` as shown:
            ////Data.Spreadsheet response = request.Execute();
            // Data.Spreadsheet response = await request.ExecuteAsync();

            //// TODO: Change code below to process the `response` object:
            //Console.WriteLine(JsonConvert.SerializeObject(response));
        }
Exemple #2
0
        public void UpdateNickname()
        {
            bool fact = lawyer.GetYesNo("Do you have more than one legend nickname to update?");

            if (!fact)
            {
                int    reservedMon = lawyer.GetInt("What is the reserved dexnum of the legend you wish to change?");
                string username    = reader.GetLegendUserNamebyRM(reservedMon);
                string nickname    = lawyer.GetResponse("What new nickname would you like to give them?");
                updater.UpdateNickname(nickname, username);
            }
            else
            {
                int num = lawyer.GetInt("How many legends would you like to change the nickname of?");
                for (int count = 0; count < num; count++)
                {
                    int    reservedMon = lawyer.GetInt("What is the reserved dexnum of the legend you wish to change?");
                    string username    = reader.GetLegendUserNamebyRM(reservedMon);
                    string nickname    = lawyer.GetResponse("What new nickname would you like to give them?");
                    updater.UpdateNickname(nickname, username);
                }
            }
        }