/// <summary> /// Gets all releases for the given game (multiple requests) /// </summary> /// <param name="game"></param> /// <param name="limitFields"></param> /// <returns></returns> /// <remarks> /// Unfortunately, this requires multiple requests; 1 for each of the releases /// </remarks> public IEnumerable<Release> GetReleasesForGame(Game game, string[] limitFields = null) { if (game == null || game.Releases == null) yield break; foreach (var r in game.Releases) yield return GetRelease(r.Id, limitFields); }
public GameView(GameItem gameItem, Game game) { GameItem = gameItem; Game = game; }
public IEnumerable<Release> GetReleasesForGame(Game game, string[] limitFields = null) { return GetReleasesForGame(game.Id, limitFields); }
public Task<IEnumerable<Release>> GetReleasesForGameAsync(Game game, string[] limitFields = null) { return GetReleasesForGameAsync(game.Id, limitFields); }