How to get login out data
Posted: 03 Jul 2016, 16:21
Hi guys. I have some problems. I hope you can help me. When I logged in the server I want to get user information from the server. Everything is fine I created the data as Json and I can trace it.
After that in login handler
and I put the Json data as string into outData. But when I check the outData in Login Event(in Unity) always return null.
I tried to Add LogListener and I can see my json data in message which comes.
You can see the picture of console. So finally How can I get login out data in client side. Pls help me.
Thanks for everything..
After that in login handler
Code: Select all
ISFSObject outData = (ISFSObject) event.getParameter(SFSEventParam.LOGIN_OUT_DATA);I tried to Add LogListener and I can see my json data in message which comes.
Code: Select all
sfs.AddLogListener(LogLevel.INFO, OnLogLevelInfo);
private void OnLogLevelInfo(BaseEvent evnt){
string message = (string)evnt.Params["message"];
Debug.Log(message);
Debug.Log((SFSObject)evnt.Params["params"]);
}Thanks for everything..