Beispiel #1
0
 public string GetSummonerIdByName(string sumName)
 {
     try
     {
         using (this.client = new WebClient())
         {
             string summonerId = client.DownloadString(URLManager.SummonerByName(sumName)).ExtractID();
             this.SummonerId   = int.Parse(summonerId);
             this.SummonerName = sumName;
         }
         return(responseCode = "#02");
     }
     catch (Exception ex)
     {
         return("#03");
     }
 }