DownloadString() public method

public DownloadString ( string url ) : Task
url string
return Task
Exemplo n.º 1
0
        public async Task <bool> DownloadCatalog()
        {
            try
            {
                string values = await SteamParser.DownloadString("http://api.steamcardexchange.net/GetBadgePrices.json");

                Storage.WriteContent(values);
                _prices = null;
            }
            catch (Exception ex)
            {
                Logger.Exception(ex, "");
                return(false);
            }
            return(true);
        }