예제 #1
0
            public PayloadData(CompletionCodeEnum CompletionCode, string ErrorDescription, CommonClass Common = null, CardReaderClass CardReader = null, CashAcceptorClass CashAcceptor = null, CashDispenserClass CashDispenser = null, CashManagementClass CashManagement = null, KeyManagementClass KeyManagement = null, KeyboardClass Keyboard = null, TextTerminalClass TextTerminal = null, PrinterClass Printer = null, CardEmbosserClass CardEmbosser = null, BarcodeReaderClass BarcodeReader = null)
                : base(CompletionCode, ErrorDescription)
            {
                ErrorDescription.IsNotNullOrWhitespace($"Null or an empty value for {nameof(ErrorDescription)} in received {nameof(StatusCompletion.PayloadData)}");

                this.Common         = Common;
                this.CardReader     = CardReader;
                this.CashAcceptor   = CashAcceptor;
                this.CashDispenser  = CashDispenser;
                this.CashManagement = CashManagement;
                this.KeyManagement  = KeyManagement;
                this.Keyboard       = Keyboard;
                this.TextTerminal   = TextTerminal;
                this.Printer        = Printer;
                this.CardEmbosser   = CardEmbosser;
                this.BarcodeReader  = BarcodeReader;
            }
예제 #2
0
 /// <summary>
 /// Initializes static properties.
 /// </summary>
 static Preferences()
 {
     Keyboard = new KeyboardClass();
     Mouse    = new MouseClass();
 }