Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // сгенерировано студией через Edit/Paste Special/Paste JSON as Classes
- public class Rootobject
- {
- public Response response { get; set; }
- }
- public class Response
- {
- public int game_count { get; set; }
- public Game[] games { get; set; }
- }
- public class Game
- {
- public int appid { get; set; }
- public int playtime_forever { get; set; }
- }
- string url = "http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?key=5DDE73742302BAFF52D2B0D72DED476B&steamid=76561198226175440";
- var parsed = JsonConvert.DeserializeObject<Rootobject>(new WebClient().DownloadString(url));
- HttpContent requestContent = Request.Content;
- string jsonContent = requestContent.ReadAsStringAsync().Result;
- MYOBJECT contact = JsonConvert.DeserializeObject<MYOBJECT>(jsonContent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement