/// <summary> /// Initializes a new instance of the <see cref="QueueDecorator"/> class /// </summary> /// <param name="serialLcd"> /// A serial LCD to which queuing will be added /// </param> /// <param name="messageDisplayDurationInSeconds"> /// The amount of time in seconds a message should be displayed before being replaced with the next message /// </param> public QueueDecorator(ISerialLcd serialLcd, int messageDisplayDurationInSeconds = 5) : base(serialLcd) { this.messageDisplayDurationInSeconds = messageDisplayDurationInSeconds; WriteQueue = new Queue(); DoWriteQueueProcessing(); }
internal SerialLcdDecorator(ISerialLcd serialLcd) { DecoratedSerialLcd = serialLcd; }