예제 #1
0
 public string GetSummonerMatchesById()
 {
     try
     {
         using (this.client = new WebClient())
         {
             summonerMatchesResponse = client.DownloadString(URLManager.SummonerMatchesById(summonerId));
         };
         responseCode = "#02";
     }
     catch (Exception ex)
     {
         return("#03");
     }
     try
     {
         idName = ReaderManager.FileReader(jsonFilePath);
         var matchesModel = SerializerManager.MatchesDeserializer(summonerMatchesResponse);
         matchesModel.SummonerId = this.SummonerId;
         this.Matches            = NameManager.MachesNameFiller(matchesModel, this.summonerName, idName);
     }
     catch (Exception ex)
     {
         throw new ArgumentException("Either response serializing or finding name went wrong " + ex.Message);
     }
     return(responseCode);
 }