private void ProcessCommand(SignalCommand command)
{
switch (command.Type)
{
case CommandType.AddToGroup:
_groups.Add((string)command.Value);
break;
case CommandType.RemoveFromGroup:
_groups.Remove((string)command.Value);
break;
case CommandType.Disconnect:
_disconnected = true;
break;
}
}