コード例 #1
0
ファイル: NGUI_SPLogin.cs プロジェクト: hjupter/CloudGoodsSDK
    void ForgotPasswordResponce(SPLogin.SPLogin_Responce responce)
    {
        //resendVerificationTextObject.SetActive(false);
        //loginErrorLabel.text = responce.message;

        confirmationStatus.text = responce.message;
    }
コード例 #2
0
 void OnReceivedSPLoginResponse(SPLogin.SPLogin_Responce response)
 {
     if (response.code == 0)
     {
         IntegrationTest.Pass(gameObject);
     }
     else
     {
         IntegrationTest.Fail(gameObject);
     }
 }
コード例 #3
0
ファイル: NGUI_SPLogin.cs プロジェクト: hjupter/CloudGoodsSDK
    void RecivedLoginResponce(SPLogin.SPLogin_Responce recivedMessage)
    {
        if (recivedMessage.code == 3)
        {
            resendVerificationTextObject.SetActive(true);
            return;
        }

        resendVerificationTextObject.SetActive(false);
        loginErrorLabel.text = recivedMessage.message;
    }
コード例 #4
0
    public SPLogin.SPLogin_Responce ConvertToSPLoginResponse(string dataString)
    {
        JToken token = JToken.Parse(dataString);

        SPLogin.SPLogin_Responce responce = Newtonsoft.Json.JsonConvert.DeserializeObject <SPLogin.SPLogin_Responce>(token.ToString());

        SPLogin.UserInfo userinfo = Newtonsoft.Json.JsonConvert.DeserializeObject <SPLogin.UserInfo>(responce.message);

        responce.userInfo = userinfo;

        return(responce);
    }
コード例 #5
0
    public SPLogin.SPLogin_Responce ConvertToSPLoginResponse(string dataString)
    {
        string parsedString = ParseString(dataString);

        Debug.Log(parsedString);

        JsonData data = LitJson.JsonMapper.ToObject(parsedString);

        JsonData userData = LitJson.JsonMapper.ToObject(data["message"].ToString());

        SPLogin.UserInfo userInfo = new SPLogin.UserInfo(new Guid(userData["ID"].ToString()), userData["name"].ToString(), userData["email"].ToString());

        SPLogin.SPLogin_Responce responce = new SPLogin.SPLogin_Responce(int.Parse(data["code"].ToString()), data["message"].ToString(), userInfo);

        return(responce);
    }
コード例 #6
0
ファイル: NGUI_SPLogin.cs プロジェクト: hjupter/CloudGoodsSDK
    void RegisterMessageResponce(SPLogin.SPLogin_Responce responce)
    {
        resendVerificationTextObject.SetActive(false);

        if (responce.code == 0)
        {
            confirmationStatus.text = "Verification Email has been sent to your Email";
            confirmationButton.onClick.Clear();
            confirmationButton.onClick.Add(new EventDelegate(this, "SwitchToLogin"));
            confirmationButton.GetComponentInChildren <UILabel>().text = "To Login";
        }
        else
        {
            confirmationStatus.text = responce.message;
            confirmationButton.onClick.Clear();
            confirmationButton.onClick.Add(new EventDelegate(this, "SwitchToRegister"));
            confirmationButton.GetComponentInChildren <UILabel>().text = "Back";
        }
    }
コード例 #7
0
ファイル: NGUI_SPLogin.cs プロジェクト: hjupter/CloudGoodsSDK
 void ResentVerificationResponce(SPLogin.SPLogin_Responce responce)
 {
     resendVerificationTextObject.SetActive(false);
     loginErrorLabel.text = responce.message;
 }
コード例 #8
0
    public SPLogin.SPLogin_Responce ConvertToSPLoginResponse(string dataString)
    {
        string parsedString = ParseString(dataString);

        Debug.Log(parsedString);

        JsonData data = LitJson.JsonMapper.ToObject(parsedString);

        JsonData userData = LitJson.JsonMapper.ToObject(data["message"].ToString());

        SPLogin.UserInfo userInfo = new SPLogin.UserInfo(new Guid(userData["ID"].ToString()), userData["name"].ToString(), userData["email"].ToString());

        SPLogin.SPLogin_Responce responce = new SPLogin.SPLogin_Responce(int.Parse(data["code"].ToString()), data["message"].ToString(), userInfo);

        return responce;
    }
コード例 #9
0
 void OnReceivedLoginResponse(SPLogin.SPLogin_Responce response)
 {
     Debug.Log("Login Response: " + response.code + " UserInfo: " + response.userInfo.name);
 }