Example #1
0
        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");
        }
Example #2
0
        public MessagesToCef(IConfig config)
        {
            Config = config;
            this.Configure();

            _config = config;



            _requestor = new Browser(_config);
            _requestor.RegisterAsyncJsObject(CallbackObject, this);

            _fromCef = new MessagesFromCef(_config, _requestor);
        }
Example #3
0
        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");
            }
        }
Example #4
0
 public DocPrinter(IMessagesFromCef fromCef, IConfig config)
 {
     _configurator = new DocPrinterConfigurator(this, config);
     _fromCef      = fromCef;
 }
Example #5
0
 public OtherOptions(IMessagesFromCef fromCef, IConfig config)
 {
     _configurator = new OtherOptionsConfigurator(this, config);
     _fromCef      = fromCef;
 }