示例#1
0
        public void getOPSkinsPreis()
        {
            string  URL  = "https://api.opskins.com/IPricing/GetAllLowestListPrices/v1/?appid=" + getAppID();
            string  json = new System.Net.WebClient().DownloadString(URL);
            JObject o    = JObject.Parse(json);

            string PreisString = (string)o["response"][this.Name]["price"];

            OPSkinsPreis = Convert.ToDouble(PreisString.Substring(0, PreisString.Length - 2) + "," + PreisString.Substring(PreisString.Length - 2));
            Favoriten f = new Favoriten(); f.preiseAktualisieren(this, 1);
        }
示例#2
0
        public void getSteamPreis()
        {
            string URL = "http://steamcommunity.com/market/priceoverview/?currency=1&appid=" + getAppID() + "&market_hash_name=";

            System.Threading.Thread.Sleep(3000);
            string  json        = new System.Net.WebClient().DownloadString(URL + this.Name);
            JObject o           = JObject.Parse(json);
            string  PreisString = (string)o["lowest_price"];

            this.SteamPreis = Convert.ToDouble(PreisString.Replace(".", ",").Substring(1));
            Favoriten f = new Favoriten(); f.preiseAktualisieren(this, 0);
        }