public override void SendCommand(WHO chi, string cosa, string dove) { if (socketType == OpenSocketType.Monitor) { throw new NotSupportedException("Non e' possibile inviare comandi in una sessione Monitor"); } status = Status.CommandProcessing; if (chi == WHO.OutsideInterface) { SendData(string.Format(CMD_EXT_IFACE, chiValues[chi.ToString()], cosa)); } else { if (dove == string.Empty) { SendData(string.Format(CMD_BUS_NO_WHERE, chiValues[chi.ToString()], cosa)); } else { SendData(string.Format(CMD_BUS, chiValues[chi.ToString()], cosa, dove)); } } }
public override void SendCommand(WHO chi, string cosa, string dove) { if (dove == string.Empty) { SendData(string.Format(CMD_BUS_NO_WHERE, chiValues[chi.ToString()], cosa)); } else { SendData(string.Format(CMD_BUS, chiValues[chi.ToString()], cosa, dove)); } }
public override void GetStateCommand(WHO chi, string dove) { if (string.IsNullOrEmpty(dove)) { SendData(string.Format(GET_STATE_NO_WHERE, chiValues[chi.ToString()])); } else { SendData(string.Format(GET_STATE, chiValues[chi.ToString()], dove)); } }