public ChooseDeviceTypeViewModel(DeviceSetupService deviceSetupService,
                                  DeviceProvisioningRestService deviceProvisioningRestService,
                                  IOnboardingRestService onboardingRestService,
                                  IWifiService wifiService)
     : base(deviceSetupService, deviceProvisioningRestService, onboardingRestService, wifiService)
 {
 }
Пример #2
0
        public PackingListLandingInputPageViewModel(INavigationService navigationService,
                                                    IBarcodeReaderService barcodeReaderService,
                                                    IStatusBarService statusBarService,
                                                    INotificationService notificationService,
                                                    IPopupNavigation popupNavigation,
                                                    IUserService userService,
                                                    ICommonService commonService,
                                                    ILandingService landingService,
                                                    IWifiService wifiService,
                                                    ILabelValidationService labelValidationService)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _notificationService    = notificationService;
            _popupNavigation        = popupNavigation;
            _userService            = userService;
            _commonService          = commonService;
            _landingService         = landingService;
            _wifiService            = wifiService;
            _labelValidationService = labelValidationService;

            Model = new PackingListLandingInputModel();
            MenuAdtionalButtons = new Dictionary <string, DelegateCommand>();

            CancelPackLanding         += ExecuteCancelPackLanding;
            CancelBillOfLadingLanding += ExecuteCancelBillOfLadingLanding;
            PauseLanding  += ExecutePauseLanding;
            EndingProcess += ExecuteEndingProcess;
        }
        public PackingListAccessoriesInputPageViewModel(INavigationService navigationService,
                                                        IBarcodeReaderService barcodeReaderService,
                                                        IStatusBarService statusBarService,
                                                        IUserService userService,
                                                        INotificationService notificationService,
                                                        IPopupNavigation popupNavigation,
                                                        ICommonService commonService,
                                                        IBoardingAccessoryService boardingAccessoryService,
                                                        IWifiService wifiService,
                                                        IBoardingService boardingService)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _userService              = userService;
            _notificationService      = notificationService;
            _popupNavigation          = popupNavigation;
            _commonService            = commonService;
            _boardingAccessoryService = boardingAccessoryService;
            _wifiService              = wifiService;
            _boardingService          = boardingService;

            Model = new PackingListAccessoriesInputModel();

            ClosePackingListAccessory  += ExecuteClosePackingListAccessory;
            CancelPackBoarding         += ExecuteCancelPackBoarding;
            CancelBillOfLadingBoarding += ExecuteCancelBillOfLadingBoarding;
        }
Пример #4
0
        public LocationService(Context context, IWifiService wifiService, ILogService logService)
        {
            _wifiService = wifiService;
            _logService  = logService;
//            App.Initialize(context);
//            _logService = App.Container.Resolve<ILogService>();
//            _wifiService = App.Container.Resolve<IWifiService>();
            _context = context;
        }
Пример #5
0
 public RegisterDeviceViewModel(
     DeviceSetupService deviceSetupService,
     IDeviceRestService deviceRestService,
     IWifiService wifiService,
     IOnboardingRestService onboardingRestService,
     DeviceProvisioningRestService deviceProvisioningRestService
     ) : base(deviceSetupService, deviceProvisioningRestService, onboardingRestService, wifiService)
 {
     this.deviceRestService = deviceRestService;
 }
Пример #6
0
 public DeviceSetupBaseViewModel(DeviceSetupService deviceSetupService,
                                 DeviceProvisioningRestService deviceProvisioningRestService,
                                 IOnboardingRestService onboardingRestService,
                                 IWifiService wifiService)
 {
     this.deviceSetupService            = deviceSetupService;
     this.deviceProvisioningRestService = deviceProvisioningRestService;
     this.onboardingRestService         = onboardingRestService;
     this.wifiService = wifiService;
 }
Пример #7
0
 public MainViewModel(DeviceSetupService deviceSetupService,
                      IDeviceRestService deviceRestService, AuthService authService,
                      DeviceProvisioningRestService deviceProvisioningRestService,
                      IOnboardingRestService onboardingRestService,
                      IWifiService wifiService
                      ) : base(deviceSetupService, deviceProvisioningRestService, onboardingRestService, wifiService)
 {
     this.deviceRestService = deviceRestService;
     this.authService       = authService;
 }
Пример #8
0
        public MainActivity()
        {
            App.Initialize(this);
            _logService                 = App.Container.Resolve <ILogService>();
            _wifiService                = App.Container.Resolve <IWifiService>();
            _permissionsService         = App.Container.Resolve <IPermissionsService>();
            _wifiLocationStorageService = App.Container.Resolve <IStorageService <WifiLocation> >();
            _locationService            = App.Container.Resolve <ILocationService>();

            _locations = _wifiLocationStorageService.GetAll();
        }
        public SelectWifiViewModel(
            IOnboardingRestService onboardingRestService,
            DeviceSetupService deviceSetupService,
            IWifiService wifiService,
            DeviceProvisioningRestService deviceProvisioningRestService
            )
            : base(deviceSetupService, deviceProvisioningRestService, onboardingRestService, wifiService)
        {
            this.onboardingRestService.SetBasicAuthentication(deviceSetupService.PortalPassword);

            this.wifiService.CheckingConnectionStatusUpdated += WifiService_CheckingConnectionStatusUpdated;
        }
 public ManageDeviceViewModel(
     DeviceSetupService deviceSetupService,
     ILocationService locationService,
     IDeviceRestService deviceRestService,
     DeviceProvisioningRestService deviceProvisioningRestService,
     IOnboardingRestService onboardingRestService,
     IWifiService wifiService
     ) : base(deviceSetupService, deviceProvisioningRestService, onboardingRestService, wifiService)
 {
     this.locationService   = locationService;
     this.deviceRestService = deviceRestService;
 }
        public MaintenanceSealsInputPageViewModel(INavigationService navigationService,
                                                  IBarcodeReaderService barcodeReaderService,
                                                  IStatusBarService statusBarService,
                                                  INotificationService notificationService,
                                                  IPopupNavigation popupNavigation,
                                                  IBoardingAccessoryService boardingAccessoryService,
                                                  IWifiService wifiService)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _notificationService      = notificationService;
            _popupNavigation          = popupNavigation;
            _boardingAccessoryService = boardingAccessoryService;
            _wifiService = wifiService;

            Model = new MaintenanceSealsInputModel();
        }
Пример #12
0
        public ConnectToDeviceViewModel(
            INavigationService navigationService,
            IWifiService wifiService,
            IDialogService dialogService,
            IEventAggregator eventAggregator)
            : base(navigationService)
        {
            _wifiService     = wifiService;
            _dialogService   = dialogService;
            _eventAggregator = eventAggregator;

            WifiSignals          = new ObservableCollection <WifiSignal>();
            DeviceWifiSignals    = new ObservableCollection <WifiSignal>();
            ScanWifiCommand      = new DelegateCommand(ScanWifi);
            ConnectToWifiCommand = new DelegateCommand <WifiSignal>(ConnectToWifi);
        }
Пример #13
0
        public PacksDetailViewPageViewModel(INavigationService navigationService,
                                            IBarcodeReaderService barcodeReaderService,
                                            IStatusBarService statusBarService,
                                            INotificationService notificationService,
                                            IPopupNavigation popupNavigation,
                                            IBillOfLadingService billOfLadingService,
                                            IWifiService wifiService)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _notificationService = notificationService;
            _popupNavigation     = popupNavigation;
            _billOfLadingService = billOfLadingService;
            _wifiService         = wifiService;

            Model = new PacksDetailViewModel();
        }
Пример #14
0
        public SendLabelInputPageViewModel(INavigationService navigationService,
                                           IBarcodeReaderService barcodeReaderService,
                                           IStatusBarService statusBarService,
                                           INotificationService notificationService,
                                           IBillOfLadingService billOfLadingService,
                                           IWifiService wifiService,
                                           IPopupNavigation popupNavigation)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _notificationService = notificationService;
            _billOfLadingService = billOfLadingService;
            _wifiService         = wifiService;
            _popupNavigation     = popupNavigation;

            Model = new SendLabelInputModel();
            MenuAdtionalButtons = new Dictionary <string, DelegateCommand>();
        }
Пример #15
0
        public UniversalLandingPageViewModel(INavigationService navigationService,
                                             IBarcodeReaderService barcodeReaderService,
                                             IStatusBarService statusBarService,
                                             INotificationService notificationService,
                                             IPopupNavigation popupNavigation,
                                             IUserService userService,
                                             ISorterService sorterService,
                                             IWifiService wifiService)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _notificationService = notificationService;
            _popupNavigation     = popupNavigation;
            _userService         = userService;
            _sorterService       = sorterService;
            _wifiService         = wifiService;

            Model = new UniversalLandingModel();

            DefaultMenuAdtionalBunttons();
        }
        public PackingListDeliveryReturnInputPageViewModel(INavigationService navigationService,
                                                           IBarcodeReaderService barcodeReaderService,
                                                           IStatusBarService statusBarService,
                                                           IUserService userService,
                                                           INotificationService notificationService,
                                                           IPopupNavigation popupNavigation,
                                                           ICommonService commonService,
                                                           IBoardingDeliveryPackService boardingDeliveryPackService,
                                                           ILandingDeliveryPackService landingDeliveryPackService,
                                                           IWifiService wifiService)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _userService                 = userService;
            _notificationService         = notificationService;
            _popupNavigation             = popupNavigation;
            _commonService               = commonService;
            _boardingDeliveryPackService = boardingDeliveryPackService;
            _landingDeliveryPackService  = landingDeliveryPackService;
            _wifiService                 = wifiService;

            Model = new PackingListDeliveryReturnInputModel();
        }
        public MainPageViewModel(IWifiService wifiService)
        {
            LeonetConnecter            = new LeonetConnecter(wifiService);
            LeonetConnecter.Connected += async(sender, args) =>
            {
                var notificator    = DependencyService.Get <IToastNotificator>();
                var androidOptions = new AndroidOptions();
                androidOptions.DismissText = "";

                var options = new NotificationOptions()
                {
                    Title          = "Success",
                    AndroidOptions = androidOptions
                };

                await notificator.Notify(options);
            };

            LogonCommand = new DelegateCommand(async() =>
            {
                await LeonetConnecter.ConnectAsync(LeonetId, LeonetPassword);
            })
                           .ObservesCanExecute(() => CanLogon);
        }
Пример #18
0
        public LoginPageViewModel(INavigationService navigationService,
                                  IBarcodeReaderService barcodeReaderService,
                                  IStatusBarService statusBarService,
                                  IEnvironmentConfigurationService environmentConfigurationService,
                                  IUserService userService,
                                  INotificationService notificationService,
                                  IServiceBase tmsApiServiceBase,
                                  ICommonService tmsApiCommonService,
                                  IPopupNavigation popupNavigation,
                                  IWifiService wifiService)
            : base(navigationService, barcodeReaderService, statusBarService)
        {
            _environmentConfigurationService = environmentConfigurationService;
            _userService         = userService;
            _notificationService = notificationService;
            _tmsApiServiceBase   = tmsApiServiceBase;
            _tmsApiCommonService = tmsApiCommonService;
            _popupNavigation     = popupNavigation;
            _wifiService         = wifiService;

            Model = new LoginModel();

            EnableWifi();
        }
Пример #19
0
 /// <summary>
 /// Constructor
 /// </summary>
 public MainViewModel(IWifiService wifiService)
 {
     _wifiService = wifiService;
     Task.Factory.StartNew(() => UpdateAvailableAccessPoints());
 }
 public SelectWifiViewModel(IWifiService wifiService)
 {
     this.wifiService = wifiService;
 }
Пример #21
0
 public RegisterDeviceViewModel(DeviceSetupService deviceSetupService, IWifiService wifiService)
 {
     this.deviceSetupService = deviceSetupService;
     this.wifiService        = wifiService;
 }
 public ManualConnectViewModel(DeviceSetupService deviceSetupService, IWifiService wifiService, OnboardingRestService onboardingRestService)
 {
     this.deviceSetupService    = deviceSetupService;
     this.wifiService           = wifiService;
     this.onboardingRestService = onboardingRestService;
 }
 public CompleteRegistrationViewModel(DeviceSetupService deviceSetupService,
                                      DeviceProvisioningRestService deviceProvisioningRestService,
                                      IOnboardingRestService onboardingRestService,
                                      IWifiService wifiService) : base(deviceSetupService, deviceProvisioningRestService, onboardingRestService, wifiService)
 {
 }
 public LeonetConnecter(IWifiService wifiService)
 {
     _wifiService = wifiService;
 }
Пример #25
0
 public WifiViewModel(IWindowManager windowManager, IWifiService wifiService)
 {
     _windowManager = windowManager ?? throw new ArgumentNullException(nameof(windowManager));
     _wifiService   = wifiService ?? throw new ArgumentNullException(nameof(wifiService));
     DisplayName    = "Wifi";
 }