Ejemplo n.º 1
0
 /// <summary>
 /// Fetch currencies data from BackpackTF
 /// </summary>
 /// <param name="uri"></param>
 /// <returns></returns>
 /// <exception cref="WebException"></exception>
 /// <exception cref="ArgumentNullException"></exception>
 /// <exception cref="NotSupportedException"></exception>
 public static CurrenciesData DownloadCurrencyData(string uri)
 {
     using (var client = new WebClient())
         return(CurrenciesData.FromJson(client.DownloadString(uri)));
 }