I currently having some problems with roomVariables.
This is the code used to create the roomVar
Code: Select all
HashMap<String, RoomVariable> vars = new HashMap<String, RoomVariable>();
vars.put("gaming", new RoomVariable("true",RoomVariable.TYPE_BOOLEAN,null, true, true));
helper.setRoomVariables(room, null, vars, false, false);
Code: Select all
roomVars = room.getVariableNames();
if (roomVars.contains("gaming"))
{
RoomVariable roomVar = room.getVariable("gaming");
if (roomVar.getBooleanValue())
{
continue;
}
}
Theses codes are used on the server side (an extension to joining room).
Someone could help me ?