Check Room Exist or Not

0 votes
Hi

    I want to know how to check whether rommm exist or not. basically i want to check whether room session exist or not.

    Looking forward to your reply.

 

Thanks
asked Jun 11, 2014 in AppWarp by sarora (56 points)

1 Answer

+1 vote
 
Best answer
You can use getLiveRoomInfo() method. If the room does not exists, you will get a resource not found error
answered Jun 11, 2014 by Suyash Mohan (900 points)
selected Jun 11, 2014 by sarora
Thanks for your valuable information ....

are you saying about onGetLiveRoomInfoDone method ?

In onGetLiveRoomInfoDone Method  we can get custom data, get Result, getData, getJoined Users, getLockedProperties, getProperties..

Can these method tell me whether session exist or not or like whether room exist or not.??

Please clarify me on this step.
The getResult() will tell you whether your getLiveRoomInfo was successful or not. If result is Resource_Not found, it means, the room does not exist, but if such room exists the getResult() will return success and other methods like getJoinedData, getProperties(), etc will provide you more details about that room.
You can also use getAllRooms to get the list of all available rooms.
Thanks for Saving My Team..
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
...