Let's say you want to get a score.
string boardID = "123456"; //this is your board ID that you get from
your mogade dashboard
int page = 1;//first page of scores
int numberOfScores = 10;//grab 10 scores
mogade.GetLeaderboard( boardID , page, numberOfScores ,
LeaderboardScope.Daily, DailyLeaderboardReceived );
Note that "mogade" is an instance of IMogadeClient.
"DailyLeaderboardReceived" is the Action you're asking about. It's just
a method that takes a Response of type Mogade.LeaderboardScores as a
parameter. It's defined elsewhere in your code, like this:
private void DailyLeaderboardReceived(
Response<Mogade.LeaderboardScores> response )
{
if ( !response.Success )
return;//operation failed
else
{
int theScore = response.Data.Scores[ 0 ].Points;//normally you
will want to iterate through all the Data.Scores (it is a List<Score>
collection). My example is just picking off the first score (index of 0).
}
}
All of the other mogade "GetLeaderboard" methods
(GetLeaderboardWithPlayerStats, for example) work the same way.
Hope this helps.