/// <summary> /// Initializes a new instance of the <see cref="DriverCommand"/> class. /// </summary> /// <param name="type">Command type.</param> /// <param name="data">Command data.</param> public DriverCommand(DriverCommandType type, byte[] data) { this.Type = (int)type; this.Data = data; }
/// <summary> /// Initializes a new instance of the <see cref="DriverCommand"/> class. /// </summary> /// <param name="type">Command type.</param> public DriverCommand(DriverCommandType type) : this(type, null) { // Do nothing. }