using DTS.Common.ICommunication; namespace DTS.DASLib.Command.SLICE.DownloadCommands { public abstract class EventDataCommands : CommandBase { protected enum Commands { Reserved = 0x00, ResetEventList = 0x01, QueryTotalEventCount = 0x02, QueryMatchingEvents = 0x03, QueryEventData = 0x04, SetEventData = 0x05, StartDownloadStreamData = 0x06, // CMDEVD_STREAM_EVENT_DATA_START GetNextDownloadStreamDataSamples = 0x07, // stream packet of data out to receiver. QueryUartEventInfo = 0x09, // saved UART info QueryUartEventData = 0x0A, SetUartEventData = 0x0B, GenerateEvent = 0x0C, QueryEthernetEventInfo = 0x0D, QueryEthernetEventData = 0x0E, SetEthernetEventData = 0x0F }; protected abstract Commands Command { get; } protected EventDataCommands(DTS.Common.Interface.DASFactory.ICommunication sock) : base(sock) { command.Type = CommandPacket.CommandType.EventData; command.SetCommand((byte)Command, Command.ToString()); } protected EventDataCommands(DTS.Common.Interface.DASFactory.ICommunication sock, int timeoutMillisec) : base(sock, timeoutMillisec) { command.Type = CommandPacket.CommandType.EventData; command.SetCommand((byte)Command, Command.ToString()); } } }