DIfferent Parameters for C# API and HTML5 API of "onGetLiveRoomInfoDone" method.

0 votes

Hello

I am developing onlne game on Unity which also does good job for Html5 games also

I use "onGetLiveRoomInfoDone" method on c# API whih has "LiveRoomEvent" and on HTML5 API the same method has "Room" Parameter instead of appropriate "LiveRoom".?

I also cross checked practically  via ChatDemo and the result is following:

{"json":{"owner":"","maxUsers":2,"data":"","lockProperties":"{}","name":"Room1","usernames":"d;","id":"271285964","properties":"{}"},"res":0}

which does not contain the live users contrary to C# API.

Is this intentional or something else?

For Workaround, currently I was planning to use "onSetCustomRoomDataDone" callback for  "onSetCustomRoomData",for getting online users for particular room, SO IS THIS OK?

what other solution could be done for getting user name list for a live room in HTML5 API?

Thank you,

 

asked Aug 10, 2015 in AppWarpS2 by devang024 (15 points)
recategorized Aug 13, 2015 by sushil
Hi Devang,

We are looking into it, will update you as soon as possible on the same.

Thanks.

1 Answer

0 votes
 
Best answer

After few attempts to understand the difference between APIs, I found that in the callback parameter "Room" for method

"onGetLiveRoomInfoDone" the 'usernames' key for json reply contains the info I require.

For example in Room1, there are 2 users d and d1, so

{"json":{"owner":"","maxUsers":2,"data":"","lockProperties":"{}","name":"Room1","usernames":"d;d1;","id":"271285964","properties":"{}"},"res":0}

So that is the solution I was looking for, API is complete but had to look it in a different way for different Platfrms to understand API

Thanks

answered Aug 11, 2015 by devang024 (15 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...