Hi,
I am developing trivia game in which 6 users can play game in 1 room. I have implemented it in objective c but now I want to create virtual user if room has not 6 users in 30 seconds.
I have created jar file and deployed it.Now I want to add virtual users to the room with Id I am passing from objective c using customCodeService. I am fetching room id using following code in android:
JSONObject body = request.getBody();
LogService logger = sp.buildLogService();
body.getString("Room").toString()
Now what i want is add virtual user to the room with Id and zone I am getting through body.getString(). I have used following code but getting error in room and zone.
IUser user = (IUser) new VirtualUser("Bot"+i, (Room)room, (Zone)zone);
room.addUser(user, true);
System.out.println("Adding Bot User : "+user.getName());
So How can I create ITurnBasedRoom and IZone from the ids(string) ?