예제 #1
0
 /// <summary>
 /// Retrieves reviews of a game
 /// </summary>
 /// <param name="gameId">game identifier</param>
 /// <returns>List of game reviews</returns>
 public List <GameReview> GetGameReviews(int gameId)
 {
     return(AsyncHelper.RunSync <List <GameReview> >(() => HTTPClientWrapper <List <GameReview> > .Get(this._xboxAPIUrl + @"game/Review?gameId=" + gameId)));
 }
예제 #2
0
 /// <summary>
 /// Retrieves Game Rating definitions
 /// </summary>
 /// <returns>List of game ratings </returns>
 public List <GameRating> GetGameRatingDef()
 {
     return(AsyncHelper.RunSync <List <GameRating> >(() => HTTPClientWrapper <List <GameRating> > .Get(this._xboxAPIUrl + "game/Rating")));
 }
예제 #3
0
 /// <summary>
 /// Retrieves all games
 /// </summary>
 /// <returns>list of games</returns>
 public List <Game> GetAllGames()
 {
     return(AsyncHelper.RunSync <List <Game> >(() => HTTPClientWrapper <List <Game> > .Get(this._xboxAPIUrl + "game")));
 }