Beispiel #1
0
        public static string GetPrice(string weaponName)
        {
            string      url      = @"http://steamcommunity.com/market/priceoverview/?appid=730&currency=3&market_hash_name=";
            string      response = GetResponse(url + weaponName);
            ReqResponse req      = JsonSerializer.Deserialize <ReqResponse>(response);

            return(req.lowest_price.Substring(0, req.lowest_price.Length - 1));
        }
Beispiel #2
0
        public static string GetPrice(Skin skin, SkinArgs args)
        {
            string      url        = @"http://steamcommunity.com/market/priceoverview/?appid=730&currency=3&market_hash_name=";
            string      weaponName = skin.ParseName(args);
            string      response   = GetResponse(url + weaponName);
            ReqResponse req        = JsonSerializer.Deserialize <ReqResponse>(response);

            return(req.median_price);
        }