コード例 #1
0
 public DataController(
     IPairingService pairingService,
     IMainContentService mainContentService,
     IBlogContentService blogContentService)
 {
     this.pairingService     = pairingService;
     this.mainContentService = mainContentService;
     this.blogContentService = blogContentService;
 }
コード例 #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");
        }
コード例 #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;
 }
コード例 #4
0
 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);
 }
コード例 #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);
        }
コード例 #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);
        }
コード例 #7
0
 public DataControllerBuilder WithPairingService(IPairingService pairingService)
 {
     this.pairingService = pairingService;
     return(this);
 }
コード例 #8
0
 public MatchController(IPairingService pairingService)
 {
     _pairingService = pairingService;
 }
コード例 #9
0
 public PairingController(IPairingService pairingService, IMapper mapper)
 {
     PairingService = pairingService;
     Mapper         = mapper;
 }
コード例 #10
0
 public PairingController(IPairingService airportService)
 {
     this.pairingService = airportService;
 }
コード例 #11
0
ファイル: DataController.cs プロジェクト: jscoobyced/bxbot
 public DataController(IPairingService pairingService)
 {
     this.pairingService = pairingService;
 }
コード例 #12
0
 public PairingServiceTests()
 {
     _pairingService = new PairingService();
 }
コード例 #13
0
 public PairingController(IPairingService pairingService)
 {
     _pairingService = pairingService ?? throw new ArgumentNullException(nameof(pairingService));
 }
 public PairingController(IPairingService pairingService)
 {
     _pairingService = pairingService;
 }