Exemple #1
0
    /// <summary>
    /// Retorna o ranking do minigame (disponivel apenas pra webplayer integrado com a plataforma)
    /// </summary>
    /// <returns>RequestModel com todas informaçoes desse tipo de requisicao</returns>
    /// <param name="__period">Periodo do ranking (usar constantes da classe RequestHelper)</param>
    /// <param name="__page">Numero da pagina</param>
    /// <param name="__itensPerPage">Quantidade de pontuaçoes por pagina</param>
    /// <param name="__callbackRequestCompleted">__callback request completed.</param>
    /// <param name="__callbackRequestError">__callback request error.</param>
    /// <param name="__callbackRequestStarted">__callback request started.</param>
    /// <param name="__callbackRequestFinalized">__callback request finalized.</param>
    public static GetMinigameRankingRM getMinigameRanking(string __period,
                                                          int __page,
                                                          int __itensPerPage,
                                                          RequestHelper.RequestHandlerDelegate __callbackRequestCompleted = null,
                                                          RequestHelper.RequestHandlerDelegate __callbackRequestError     = null,
                                                          RequestHelper.RequestHandlerDelegate __callbackRequestStarted   = null,
                                                          RequestHelper.RequestHandlerDelegate __callbackRequestFinalized = null)
    {
        GetMinigameRankingRM request = new GetMinigameRankingRM();

        request.cvo.setupParameters(__period, __page, __itensPerPage);
        setupRequest(request, __callbackRequestCompleted, __callbackRequestError, __callbackRequestStarted, __callbackRequestFinalized);
        return(request);
    }
        void OnGetMinigameRankingRequestSuccess(BaseRequestModel request)
        {
            GetMinigameRankingRM r = request as GetMinigameRankingRM;

            DebugConsole.Append("OnGetMinigameRankingRequestSuccess called  :: obj received: " + r.svo.jsonReceived);
        }
Exemple #3
0
    void OnGetMinigameRankingRequestSuccess(BaseRequestModel request)
    {
        GetMinigameRankingRM r = request as GetMinigameRankingRM;

        ranking = r.svo;
    }