Example #1
0
        // TODO: This should return a reference to an obj that can cancel all requests.
        public void ExecuteAsync(GhostScoresDidLoadHandler handler)
        {
            _handler = handler;
            OKLeaderboard leaderboard = new OKLeaderboard();

            leaderboard.LeaderboardID = this.LeaderboardID;

            // Kick off the chain...
            leaderboard.GetFacebookFriendsScores(FacebookFriendsScoresDidLoad);
        }
Example #2
0
    void GetSocialScores()
    {
        OKLeaderboard leaderboard = new OKLeaderboard(SampleLeaderboardID);

        OKLog.Info("Getting scores for leaderboard ID: " + leaderboard.LeaderboardID + " named: " + leaderboard.Name);
        leaderboard.GetFacebookFriendsScores((List <OKScore> scores, OKException exception2) => {
            if (exception2 == null)
            {
                OKLog.Info("Got facebook friends scores scores in the callback");
            }
            else
            {
                OKLog.Info("Error getting facebook friends scores: " + exception2);
            }
        });
    }