Exemplo n.º 1
0
            public void OnSuccess(Roar.CallbackInfo <Roar.WebObjects.Leaderboards.ViewResponse> info)
            {
                IDictionary <int, IList <DomainObjects.LeaderboardEntry> > board = null;

                leaderboards.boards.TryGetValue(board_id, out board);
                if (board == null)
                {
                    board = new Dictionary <int, IList <DomainObjects.LeaderboardEntry> >();
                    leaderboards.boards[board_id] = board;
                }

                board[info.data.leaderboard_data.page] = info.data.leaderboard_data.entries;
                if (cb != null)
                {
                    cb(new Roar.CallbackInfo <ILeaderboards>(leaderboards, WebAPI.OK, null));
                }
                Leaderboards.OnLeaderboardFetchCompleted(info.data);
            }
Exemplo n.º 2
0
 public BoardFetcherCallback(Leaderboards leaderboards, string board_id, Roar.Callback <ILeaderboards> cb)
 {
     this.leaderboards = leaderboards;
     this.board_id     = board_id;
     this.cb           = cb;
 }
Exemplo n.º 3
0
 public BoardListFetcherCallback(Leaderboards leaderboards, Roar.Callback <ILeaderboards> cb)
 {
     this.leaderboards = leaderboards;
     this.cb           = cb;
 }