public ISFSArray ToSFSArray() { MatchExpression matchExpression = Rewind(); ISFSArray iSFSArray = new SFSArray(); iSFSArray.AddSFSArray(matchExpression.ExpressionAsSFSArray()); while (matchExpression.HasNext()) { matchExpression = matchExpression.Next(); iSFSArray.AddSFSArray(matchExpression.ExpressionAsSFSArray()); } return(iSFSArray); }
public void addConection() { Debug.Log("addConection"); List<RoomVariable> roomVars = new List<RoomVariable>(); Room room = smartFox.LastJoinedRoom; RoomVariable aux = room.GetVariable("RoomVC"); SFSArray array = new SFSArray(); if (aux != null) array = (SFSArray)aux.GetSFSArrayValue(); SFSArray user = new SFSArray(); user.AddUtfString(currentName); user.AddUtfString(ip); SFSArray conection = new SFSArray(); conection.AddSFSArray(user); array.AddSFSArray(conection); roomVars.Add( new SFSRoomVariable("RoomVC", array) ); smartFox.Send ( new SetRoomVariablesRequest(roomVars, smartFox.LastJoinedRoom) ); }