public ReqSignin SignInPlatformUser(LJUser user) { ReqSignin component = GameObjectUtil.InstantiateItemAsChildOf(this.signinPrefab, base.gameObject).GetComponent<ReqSignin>(); component.SignInPlatformUser(user); return component; }
private void SendSignInPlatoformUser(LJUser user) { this.isRequestingServer = true; this.reqSignin = ServerRequestManager.instance.SignInPlatformUser(user); this.reqSignin.LoginPlatformUserSuccessEvent += new EventHandler<EventArgs>(this.HandleLoginPlatformUserSuccessEvent); this.reqSignin.LoginPlatformUserFailEvent += new EventHandler<EventArgs>(this.HandleLoginPlatformUserFailEvent); }
public void SignInLengjingUser(LJUser user) { this.SendSignInPlatoformUser(user); }
public void SignInPlatformUser(LJUser ljuser) { Dictionary<string, string> data = new Dictionary<string, string>(); string str = WWW.EscapeURL(ljuser.token); string[] textArray1 = new string[] { "index/ljLogin/", ljuser.uid, "/", ljuser.channeluid, "/", str, "/", ljuser.channelid, "/" }; base.path = string.Concat(textArray1); Debug.Log("Sending login " + base.path); data["token"] = str; data["channelid"] = ljuser.channelid; data["deviceId"] = TalkingDataGA.GetDeviceId(); base.SetupParams(data, new BaseWWWRequest.OnSuccess(this.onReqPlatformUserLoginSuccess), new BaseWWWRequest.OnFail(this.onReqPlatformUserLoginFail), true, ServerType.LoginServer, this.needZip); }