/// <summary> /// Gets the achievements. /// </summary> /// <param name="json">The json object.</param> /// <returns> /// All <see cref="Achievement"/>s for the given user and game. /// </returns> public List <Achievement> GetAchievements(SteamUserIdGameIdParameter json) { if (json == null) { throw new ArgumentNullException("json"); } return(_service.GetAchievements(json.SteamUserId, json.GameId).ToList()); }
public List <Achievement> GetAchievements(SteamUserIdGameIdParameter json) { return(new List <Achievement> { new Achievement { Id = 1, Name = "Cr0wnd", Description = "Kill a Witch with a single headshot.", ImageUrl = "http://media.steampowered.com/steamcommunity/public/images/apps/500/2b9a77bc3d6052538797337dad9eee87e74f639d.jpg" }, new Achievement { Id = 2, Name = "Dead Stop", Description = "Punch a Hunter as he is pouncing.", ImageUrl = "http://media.steampowered.com/steamcommunity/public/images/apps/500/0abefbfb22ef97d532d95fbb5261ff2d52f55e5f.jpg" } }); }