Example #1
0
        /// <summary>
        /// Gets list of the leaderboards for provided ids.
        /// </summary>
        /// <param name="leaderboardIds">Set of leaderboard ids.</param>
        /// <param name="onSuccess">Action called if operation was successful.</param>
        /// <param name="onFailure">Action called if operation failed to complete. Optional.</param>
        public void GetLeaderboards(HashSet <string> leaderboardIds, Action <List <Leaderboard> > onSuccess,
                                    Action onFailure = null)
        {
            Check.Argument.IsNotNull(leaderboardIds, "leaderboardIds", "Leaderboard ids cannot be null");
            Check.Argument.IsNotNull(onSuccess, "onSuccess", "Success callback cannot be null");

            getSocialImpl.GetLeaderboards(leaderboardIds,
                                          GetLeaderboardsOnSuccessAdapter(onSuccess),
                                          GetLeaderboardOnFailureAdapter(onFailure)
                                          );
        }