I'm trying to get a list of rooms in my Unity app. I have created two rooms on the appwarp console. But when I call getallarooms() in onGetAllRoomsDone Debug.Log ("Getallrooms " + eventObj.getResult ()) returns 0. I'm thinking it should return the number of rooms?
These are my Listeners:
listen = GetComponent<Listener>();
WarpClient.GetInstance().AddConnectionRequestListener(listen);
WarpClient.GetInstance().AddChatRequestListener(listen);
WarpClient.GetInstance().AddLobbyRequestListener(listen);
WarpClient.GetInstance().AddNotificationListener(listen);
WarpClient.GetInstance().AddRoomRequestListener(listen);
WarpClient.GetInstance().AddUpdateRequestListener(listen);
WarpClient.GetInstance().AddZoneRequestListener(listen);
I'm able to connect successfully and join the lobby, I'm even able to join a room using a roomId, but not sure what I might be doing wrong as far as getting all existing rooms is concerned ...
Is there a Unity example available that has multiple rooms to choose from? (so I can explore the onGetAllRoomsDone results in a working sample)
Thanks