Exemplo n.º 1
0
 public DataController(
     IPairingService pairingService,
     IMainContentService mainContentService,
     IBlogContentService blogContentService)
 {
     this.pairingService     = pairingService;
     this.mainContentService = mainContentService;
     this.blogContentService = blogContentService;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="navService">Navigation service instance resolved by DI.</param>
        /// <param name="dispatcherService">Dispatcher service instance resolved by DI.</param>
        public VMMainPage(INavigationService navService, IDispatcherService dispatcherService,
                          ISettingsService settingsService, IApiService apiService, INFCService nfcService,
                          IBluetoothService bluetoothService, IBfService bfService, IPairingService pairingService, IUxService uxService)
        {
            this.navService        = navService;
            this.settingsService   = settingsService;
            this.dispatcherService = dispatcherService;
            this.apiService        = apiService;
            this.nfcService        = nfcService;
            this.bluetoothService  = bluetoothService;
            this.bfService         = bfService;
            this.pairingService    = pairingService;
            this.uxService         = uxService;

            this.setAsBusyCommand                    = new DelegateCommand <bool>(SetAsBusyExecte);
            this.logOutCommand                       = new DelegateCommand(LogOutExecute);
            this.navigateToSecureEmailCommand        = new DelegateCommand(NavigateToSecureEmailExecute);
            this.navigateToShareSecureMessageCommand = new DelegateCommand(NavigateToShareSecureMessageExecute);
            this.startNfcPairingCommand              = new DelegateCommand(StartNfcPairingExecute);
            this.navigateToAboutCommand              = new DelegateCommand(NavigateToAboutExecute);
            this.addressChooserCommand               = new DelegateCommand(AddressChooserExecute);
            this.sendSecureEmailCommand              = new DelegateCommand(SendSecureEmailExecute, SendSecureEmailCanExecute);
            this.shareSecureMessageCommand           = new DelegateCommand(ShareSecureMessageExecute, ShareSecureMessageCanExecute);
            this.publishMessageCommand               = new DelegateCommand(PublishMessageExecute, PublishMessageCanExecute);
            this.writeToTagCommand                   = new DelegateCommand(WriteToTagExecute, WriteToTagCanExecute);
            this.encryptSecureNoteCommand            = new DelegateCommand(EncryptSecureNoteExecute, EncryptSecureNoteCanExecute);
            this.clearLogCommand                     = new DelegateCommand(ClearLogExecute);
            this.navigateToInstructionsCommand       = new DelegateCommand(NavigateToInstructionsExecite);
            this.pairDeviceCommand                   = new DelegateCommand(PairDeviceExecute, PairDeviceCanExecute);
            //this.pairDeviceCommand = new DelegateCommand(PairDeviceExecute);

            if (this.nfcService.ConnectDefaultProximityDevice())
            {
                this.nfcService.DeviceArrived             += nfcService_DeviceArrived;
                this.nfcService.DeviceLeft                += nfcService_DeviceLeft;
                this.nfcService.MessageReceivedCompleted  += nfcService_MessageReceivedCompleted;
                this.nfcService.MessagePublishedCompleted += nfcService_MessagePublishedCompleted;
                this.nfcService.SubscribeToMessage("WriteableTag");
                this.nfcService.SubscribeToMessage("NDEF");
                this.nfcService.SubscribeToMessage("NDEF:Unknown");
                this.nfcService.SubscribeToMessage("WindowsMime");
            }
            else
            {
                uxService.ShowToastNotification("Error", AppResources.NoNfcError);
                LogMessage(AppResources.NoNfcError, NfcLogItem.ERROR_ICON);
            }

            contacts   = new Contacts();
            myIdentity = (string)settingsService.Get("email");
        }
Exemplo n.º 3
0
 public CmtPaymentService(ICommandBus commandBus,
                          IOrderDao orderDao,
                          ILogger logger,
                          IAccountDao accountDao,
                          IOrderPaymentDao paymentDao,
                          ServerPaymentSettings serverPaymentSettings,
                          IPairingService pairingService,
                          ICreditCardDao creditCardDao)
 {
     _commandBus            = commandBus;
     _orderDao              = orderDao;
     _logger                = logger;
     _accountDao            = accountDao;
     _paymentDao            = paymentDao;
     _serverPaymentSettings = serverPaymentSettings;
     _pairingService        = pairingService;
     _creditCardDao         = creditCardDao;
 }
 public MonerisPaymentService(ICommandBus commandBus,
                              ILogger logger,
                              IOrderPaymentDao paymentDao,
                              IServerSettings serverSettings,
                              ServerPaymentSettings serverPaymentSettings,
                              IPairingService pairingService,
                              ICreditCardDao creditCardDao,
                              IOrderDao orderDao)
 {
     _commandBus            = commandBus;
     _logger                = logger;
     _paymentDao            = paymentDao;
     _serverSettings        = serverSettings;
     _serverPaymentSettings = serverPaymentSettings;
     _pairingService        = pairingService;
     _creditCardDao         = creditCardDao;
     _orderDao              = orderDao;
     MonerisHttpRequestWrapper.SetLogger(_logger);
 }
Exemplo n.º 5
0
        public BraintreePaymentService(ICommandBus commandBus,
                                       ILogger logger,
                                       IOrderPaymentDao paymentDao,
                                       IOrderDao orderDao,
                                       IServerSettings serverSettings,
                                       ServerPaymentSettings serverPaymentSettings,
                                       IPairingService pairingService,
                                       ICreditCardDao creditCardDao)
        {
            _commandBus     = commandBus;
            _logger         = logger;
            _paymentDao     = paymentDao;
            _orderDao       = orderDao;
            _serverSettings = serverSettings;
            _pairingService = pairingService;
            _creditCardDao  = creditCardDao;

            BraintreeGateway = GetBraintreeGateway(serverPaymentSettings.BraintreeServerSettings);
        }
Exemplo n.º 6
0
        public PayPalService(IServerSettings serverSettings,
                             ServerPaymentSettings serverPaymentSettings,
                             ICommandBus commandBus,
                             IAccountDao accountDao,
                             IOrderDao orderDao,
                             ILogger logger,
                             IPairingService pairingService,
                             IOrderPaymentDao paymentDao) : base(serverPaymentSettings, accountDao)
        {
            _serverSettings        = serverSettings;
            _serverPaymentSettings = serverPaymentSettings;
            _commandBus            = commandBus;
            _accountDao            = accountDao;
            _orderDao       = orderDao;
            _logger         = logger;
            _pairingService = pairingService;
            _paymentDao     = paymentDao;

            _resources = new Resources.Resources(serverSettings);
        }
Exemplo n.º 7
0
 public DataControllerBuilder WithPairingService(IPairingService pairingService)
 {
     this.pairingService = pairingService;
     return(this);
 }
Exemplo n.º 8
0
 public MatchController(IPairingService pairingService)
 {
     _pairingService = pairingService;
 }
Exemplo n.º 9
0
 public PairingController(IPairingService pairingService, IMapper mapper)
 {
     PairingService = pairingService;
     Mapper         = mapper;
 }
Exemplo n.º 10
0
 public PairingController(IPairingService airportService)
 {
     this.pairingService = airportService;
 }
Exemplo n.º 11
0
 public DataController(IPairingService pairingService)
 {
     this.pairingService = pairingService;
 }
Exemplo n.º 12
0
 public PairingServiceTests()
 {
     _pairingService = new PairingService();
 }
Exemplo n.º 13
0
 public PairingController(IPairingService pairingService)
 {
     _pairingService = pairingService ?? throw new ArgumentNullException(nameof(pairingService));
 }
 public PairingController(IPairingService pairingService)
 {
     _pairingService = pairingService;
 }