Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
 public GameView(GameItem gameItem, Game game)
 {
     GameItem = gameItem;
     Game     = game;
 }
Exemplo n.º 3
0
 public IEnumerable<Release> GetReleasesForGame(Game game, string[] limitFields = null)
 {
     return GetReleasesForGame(game.Id, limitFields);
 }
Exemplo n.º 4
0
 public Task<IEnumerable<Release>> GetReleasesForGameAsync(Game game, string[] limitFields = null)
 {
     return GetReleasesForGameAsync(game.Id, limitFields);
 }