Esempio n. 1
0
    public void RequestUsersByGroup(IList <string> pUsersList, App42Response.OnSuccessDelegate pOnSuccess,
                                    App42Response.OnExceptionDelegate pOnException)
    {
        App42Response response = new App42Response(pOnSuccess, pOnException);

        userService.GetUsersByGroup(pUsersList, response);
    }
Esempio n. 2
0
    public void LinkFacebookAccount(string pUserName, string pAccessToken,
                                    App42Response.OnSuccessDelegate pSuccess, App42Response.OnExceptionDelegate pException)
    {
        App42Response response = new App42Response(pSuccess, pException);

        socialService.LinkUserFacebookAccount(pUserName, pAccessToken, response);
    }
Esempio n. 3
0
    public void RequestUser(string pUserName, App42Response.OnSuccessDelegate pOnSuccess,
                            App42Response.OnExceptionDelegate pOnException)
    {
        App42Response response = new App42Response(pOnSuccess, pOnException);

        userService.GetUser(pUserName, response);
    }
Esempio n. 4
0
    public void CreateUserWithProfile(string pName, string pPassword, string pEmail, User.Profile pProfile,
                                      App42Response.OnSuccessDelegate pSuccess, App42Response.OnExceptionDelegate pException)
    {
        App42Response response = new App42Response(pSuccess, pException);

        userService.CreateUserWithProfile(pName, pPassword, pEmail, pProfile, response);
    }
Esempio n. 5
0
    public void GetTopNRankersFromFacebook(string pGameName, int pMax, string pFBToken,
                                           App42Response.OnSuccessDelegate pSuccess, App42Response.OnExceptionDelegate pException)
    {
        App42Response response = new App42Response(pSuccess, pException);

        scoreBoardService.GetTopNRankersFromFacebook(pGameName, pFBToken, pMax, response);
    }
Esempio n. 6
0
    public void SaveUserScore(string pLeaderBoardName, string pUserName, double pScore,
                              App42Response.OnSuccessDelegate pSuccess, App42Response.OnExceptionDelegate pException)
    {
        App42Response response = new App42Response(pSuccess, pException);

        scoreBoardService.SaveUserScore(pLeaderBoardName, pUserName, pScore, response);
    }
Esempio n. 7
0
    /// <summary>
    /// Registra o tempo total gasto por um usuario	para completar um tarefa especifica.
    /// </summary>
    /// <param name="p_activityName">Nome da atividade.</param>
    /// <param name="p_properties">Propriedade da atividade.</param>
    /// <param name="p_callBack">Funçao de retorno da solicitaçao.</param>
    /// <example>
    /// String activityName = "Level1";
    /// Dictionary<String,object> properties = new Dictionary<string, object> ();
    /// properties.Add ("Name", "Level1");
    /// properties.Add ("State", "Started");
    /// properties.Add ("Score", 0);
    /// properties.Add ("Difficulty", "Easy");
    /// properties.Add ("IsCompletedSecretMission", false);
    /// eventService.StartActivity(activityName, properties, new UnityCallBack());
    /// </example>
    public static void StartTrackingUserActivity(string p_activityName, Dictionary <string, object> p_properties, App42Response.OnSuccessDelegate pSuccess, App42Response.OnExceptionDelegate pException)
    {
        App42Response response = new App42Response(pSuccess, pException);

        eventService.StartActivity(p_activityName, p_properties, response);
    }
Esempio n. 8
0
    /// <summary>
    /// Registra o acontecimento de um evento na aplicaçao.
    /// </summary>
    /// <param name="p_eventname">O nome do evento, ja cadastrado no dashboard .</param>
    /// <param name="p_properties">Propriedade dos eventos.</param>
    /// <param name="p_callBack">Funçao de retorno da solicitaçao.</param>
    /// <example>
    /// String eventName = "Purchase";
    /// Dictionary<String,object> properties = new Dictionary<string, object> ();
    /// properties.Add ("Name", "Nick");
    /// properties.Add ("Revenue", 5000);
    /// eventService.TrackEvent(eventName, properties, new UnityCallBack());
    /// </example>
    public static void TrackEvent(string p_eventname, Dictionary <string, object> p_properties, App42Response.OnSuccessDelegate pSuccess, App42Response.OnExceptionDelegate pException)
    {
        App42Response response = new App42Response(pSuccess, pException);

        eventService.TrackEvent(p_eventname, p_properties, response);
    }