Пример #1
0
        /// <summary>
        /// Get the leaderboard for a game mode.
        /// </summary>
        /// <param name="gameMode">The game mode to search for.</param>
        /// <param name="page">The leaderboard page to search for.</param>
        public Leaderboard GetLeaderboard(PlatformShard shard, string gameMode, int page)
        {
            string shardUri       = BuildShardUri(shard);
            string leaderboardUri = shardUri + "leaderboards/"
                                    + gameMode + "?page[number]=" + page;
            IRestResponse response = MakeRequest(leaderboardUri);

            return(Leaderboard.Deserialize(response.Content));
        }