void ForgotPasswordResponce(SPLogin.SPLogin_Responce responce) { //resendVerificationTextObject.SetActive(false); //loginErrorLabel.text = responce.message; confirmationStatus.text = responce.message; }
void OnReceivedSPLoginResponse(SPLogin.SPLogin_Responce response) { if (response.code == 0) { IntegrationTest.Pass(gameObject); } else { IntegrationTest.Fail(gameObject); } }
void RecivedLoginResponce(SPLogin.SPLogin_Responce recivedMessage) { if (recivedMessage.code == 3) { resendVerificationTextObject.SetActive(true); return; } resendVerificationTextObject.SetActive(false); loginErrorLabel.text = recivedMessage.message; }
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); }
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); }
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"; } }
void ResentVerificationResponce(SPLogin.SPLogin_Responce responce) { resendVerificationTextObject.SetActive(false); loginErrorLabel.text = responce.message; }
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; }
void OnReceivedLoginResponse(SPLogin.SPLogin_Responce response) { Debug.Log("Login Response: " + response.code + " UserInfo: " + response.userInfo.name); }