public CardReader(IMessagesFromCef fromCef, IConfig config) { _configurator = new CardReaderConfigurator(this, config); _fromCef = fromCef; _term = new EMVTerminal(); _utils = new Utils(); _tlv = new TLV(); _term.InitTerminal("14", "0643"); }
public MessagesToCef(IConfig config) { Config = config; this.Configure(); _config = config; _requestor = new Browser(_config); _requestor.RegisterAsyncJsObject(CallbackObject, this); _fromCef = new MessagesFromCef(_config, _requestor); }
public Controller CreateController(string str, IMessagesFromCef fromCef, IConfig config) { if (string.IsNullOrEmpty(str)) { throw new ArgumentNullException("Controller"); } switch (str) { case "CardReader": return(new CardReader(fromCef, config)); case "DocPrinter": return(new DocPrinter(fromCef, config)); case "OtherOptions": return(new OtherOptions(fromCef, config)); default: throw new ArgumentException("Controller"); } }
public DocPrinter(IMessagesFromCef fromCef, IConfig config) { _configurator = new DocPrinterConfigurator(this, config); _fromCef = fromCef; }
public OtherOptions(IMessagesFromCef fromCef, IConfig config) { _configurator = new OtherOptionsConfigurator(this, config); _fromCef = fromCef; }