This is my JSON Input:
{ "assets":[ { "appid":730, "contextid":"2", "assetid":"16106538532", "classid":"3292478154", "instanceid":"0", "amount":"1" }, { "appid":730, "contextid":"2", "assetid":"16102298435", "classid":"3291242689", "instanceid":"0", "amount":"1" }, // ... ], "descriptions":[ { "appid":730, "classid":"3292478154", "instanceid":"0", "currency":0, "background_color":"", "icon_url":"//url", "descriptions":[...], "tradable":0, "name":"Spectrum Case", "name_color":"D2D2D2", "type":"Base Grade Container", "market_name":"Spectrum Case", "market_hash_name":"Spectrum Case", "commodity":1, "market_tradable_restriction":7, "marketable":1, "tags":[//...] }, // ... { "appid":730, "classid":"3291242689", "instanceid":"0", "currency":0, "background_color":"", "icon_url":"//url", "descriptions":[...], "tradable":0, "name":"Horizon Case", "name_color":"D2D2D2", "type":"Base Grade Container", "market_name":"Horizon Case", "market_hash_name":"Horizon Case", "commodity":1, "market_tradable_restriction":7, "marketable":1, "tags":[//...] }, // ... ], "total_inventory_count":45, "success":1, "rwgrsn":-2 }
I only have the AssetID, which is a unique ID for an item
But to get item’s info, first I have to get its ClassID which also stores the item’s info
For Example, I have var assetID = "16106538532";
but I also want the ClassID’s info f.e. "market_hash_name"
, "icon_url"
, …
How do I get this in C#? Theoretically, I know how to get the JSON data and how to save it into var json
, but I have no clue how to handle the rest. Thank you for helping