public OfficeConfiguration(
            IDeviceService deviceService,
            IAreaService areaService,
            IDaylightService daylightService,
            CCToolsBoardService ccToolsBoardService,
            SynonymService synonymService,
            RemoteSocketService remoteSocketService,
            ActuatorFactory actuatorFactory,
            SensorFactory sensorFactory)
        {
            if (deviceService == null) throw new ArgumentNullException(nameof(deviceService));
            if (areaService == null) throw new ArgumentNullException(nameof(areaService));
            if (daylightService == null) throw new ArgumentNullException(nameof(daylightService));
            if (ccToolsBoardService == null) throw new ArgumentNullException(nameof(ccToolsBoardService));
            if (synonymService == null) throw new ArgumentNullException(nameof(synonymService));
            if (remoteSocketService == null) throw new ArgumentNullException(nameof(remoteSocketService));
            if (actuatorFactory == null) throw new ArgumentNullException(nameof(actuatorFactory));
            if (sensorFactory == null) throw new ArgumentNullException(nameof(sensorFactory));

            _deviceService = deviceService;
            _areaService = areaService;
            _daylightService = daylightService;
            _ccToolsBoardService = ccToolsBoardService;
            _synonymService = synonymService;
            _remoteSocketService = remoteSocketService;
            _actuatorFactory = actuatorFactory;
            _sensorFactory = sensorFactory;
        }
Пример #2
0
 public Device(IDeviceService iDeviceService, string version, DateTime timeWhenUsed, Guid applicationId)
 {
     this.deviceService = iDeviceService;
     this.Version = version;
     this.DateCreated = timeWhenUsed;
     this.applicationId = applicationId;
 }
Пример #3
0
            public Configuration(
                CCToolsBoardService ccToolsBoardService, 
                IPi2GpioService pi2GpioService, 
                SynonymService synonymService,
                IDeviceService deviceService,
                II2CBusService i2CBusService, 
                ISchedulerService schedulerService, 
                RemoteSocketService remoteSocketService, 
                IApiService apiService,
                IContainer containerService)
            {
                if (ccToolsBoardService == null) throw new ArgumentNullException(nameof(ccToolsBoardService));
                if (pi2GpioService == null) throw new ArgumentNullException(nameof(pi2GpioService));
                if (synonymService == null) throw new ArgumentNullException(nameof(synonymService));
                if (deviceService == null) throw new ArgumentNullException(nameof(deviceService));
                if (i2CBusService == null) throw new ArgumentNullException(nameof(i2CBusService));
                if (schedulerService == null) throw new ArgumentNullException(nameof(schedulerService));
                if (remoteSocketService == null) throw new ArgumentNullException(nameof(remoteSocketService));
                if (apiService == null) throw new ArgumentNullException(nameof(apiService));
                if (containerService == null) throw new ArgumentNullException(nameof(containerService));

                _ccToolsBoardService = ccToolsBoardService;
                _pi2GpioService = pi2GpioService;
                _synonymService = synonymService;
                _deviceService = deviceService;
                _i2CBusService = i2CBusService;
                _schedulerService = schedulerService;
                _remoteSocketService = remoteSocketService;
                _apiService = apiService;
                _containerService = containerService;
            }
        public BedroomConfiguration(
            IDeviceService deviceService,
            IAreaService areaService,
            CCToolsBoardService ccToolsBoardService,
            SynonymService synonymService,
            ActuatorFactory actuatorFactory,
            SensorFactory sensorFactory,
            AutomationFactory automationFactory)
        {
            if (deviceService == null) throw new ArgumentNullException(nameof(deviceService));
            if (areaService == null) throw new ArgumentNullException(nameof(areaService));
            if (ccToolsBoardService == null) throw new ArgumentNullException(nameof(ccToolsBoardService));
            if (synonymService == null) throw new ArgumentNullException(nameof(synonymService));
            if (actuatorFactory == null) throw new ArgumentNullException(nameof(actuatorFactory));
            if (sensorFactory == null) throw new ArgumentNullException(nameof(sensorFactory));
            if (automationFactory == null) throw new ArgumentNullException(nameof(automationFactory));

            _deviceService = deviceService;
            _areaService = areaService;
            _ccToolsBoardService = ccToolsBoardService;
            _synonymService = synonymService;
            _actuatorFactory = actuatorFactory;
            _sensorFactory = sensorFactory;
            _automationFactory = automationFactory;
        }
        public LowerBathroomConfiguration(
            IDeviceService deviceService,
            ISchedulerService schedulerService,
            IAreaService areaService,
            SynonymService synonymService,
            AutomationFactory automationFactory,
            ActuatorFactory actuatorFactory,
            SensorFactory sensorFactory)
        {
            if (deviceService == null) throw new ArgumentNullException(nameof(deviceService));
            if (schedulerService == null) throw new ArgumentNullException(nameof(schedulerService));
            if (areaService == null) throw new ArgumentNullException(nameof(areaService));
            if (synonymService == null) throw new ArgumentNullException(nameof(synonymService));
            if (automationFactory == null) throw new ArgumentNullException(nameof(automationFactory));
            if (actuatorFactory == null) throw new ArgumentNullException(nameof(actuatorFactory));
            if (sensorFactory == null) throw new ArgumentNullException(nameof(sensorFactory));

            _deviceService = deviceService;
            _schedulerService = schedulerService;
            _areaService = areaService;
            _synonymService = synonymService;
            _automationFactory = automationFactory;
            _actuatorFactory = actuatorFactory;
            _sensorFactory = sensorFactory;
        }
Пример #6
0
 public DeviceController(ICustomerService customerService, IDistributorService distributorService, IDealerService dealerService, IVehicleService<Vehicle> vehicleService, IDeviceService<Device> deviceService)
 {
     this._customerService = customerService;
     this._distributorService = distributorService;
     this._dealerService = dealerService;
     this._vehicleService = vehicleService;
     this._deviceServce = deviceService;
 }
 public IssueDetailsPageViewModel(IDeviceService deviceService,
     ILoader loader,
     IProgressService progressService,
     INavigationService navigationService)
     : base(loader, progressService, navigationService)
 {
     _deviceService = deviceService;
 }
        public CCToolsBoardService(IDeviceService deviceService, II2CBusService i2CBusServiceService)
        {
            if (i2CBusServiceService == null) throw new ArgumentNullException(nameof(i2CBusServiceService));
            if (deviceService == null) throw new ArgumentNullException(nameof(deviceService));

            _deviceService = deviceService;
            _i2CBusService = i2CBusServiceService;
        }
Пример #9
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="client">Associated DeviceHive device client. Use any custom or default <see cref="RestfulDeviceService"/> implementation.</param>
        /// <param name="network">Associated DeviceHive network object (optional). If specified network is not found in the DeviceHive service, it will be automatically created.</param>
        public DeviceHost(IDeviceService client, Network network)
        {
            if (client == null)
                throw new ArgumentNullException("client");

            DeviceClient = client;
            Network = network;
        }
Пример #10
0
 public AUserService(IRepository rep,
     ICacheService cacheService, IDeviceService deviceService, INodeService nodeService, IUserService userService)
 {
     _rep = rep;
     _cacheService = cacheService;
     _deviceService = deviceService;
     _nodeService = nodeService;
     _userService = userService;
 }
Пример #11
0
 public DevicesController(
     IDeviceRepository deviceRepository,
     IDeviceService deviceService,
     UserManager<User> userManager)
 {
     _deviceRepository = deviceRepository;
     _deviceService = deviceService;
     _userManager = userManager;
 }
Пример #12
0
 public NowViewModel(IDeviceService deviceService)
 {
     _deviceService = deviceService;
     _setOffset();
     var t = new Timer();
     t.Interval = 3000;
     t.Elapsed += T_Elapsed;
     t.Start();
 }
Пример #13
0
 public AboutPageViewModel(IDeviceService deviceService,
     ILoader loader,
     IProgressService progressService,
     INavigationService navigationService)
     : base(loader, progressService, navigationService)
 {
     _deviceService = deviceService;
     Version = "1.0";
 }
Пример #14
0
 public AppSession(Guid deviceId, Guid applicationId, 
     DateTime timeWhenUsed, string version, IDeviceService iDeviceService)
 {
     this.deviceId = deviceId;
     this.applicationId = applicationId;
     this.iDeviceService = iDeviceService;
     this.timeWhenUsed = timeWhenUsed;
     this.version = version;
 }
 public SimulationService(IDeviceService deviceService, IIotHubRepository iotHubRepository, Settings settings)
 {
     _deviceService = deviceService;
     _iotHubRepository = iotHubRepository;
     _storageConnectionString = settings.StorageConnectionString;
     _telemetryTableName = settings.TelemetryTableName;
     _mlResultTableName = settings.PredictionTableName;
     _simulatorStateTableName = settings.SimulatorStateTableName;
 }
Пример #16
0
 public SettingsViewModel(ISettingService settingService, IMessagingService messagingService, IDeviceService deviceService)
 {
     _settingService = settingService;
     _messagingService = messagingService;
     _deviceService = deviceService;
     SaveSettingsCommand = new CaptionCommand<string>(Resources.Save, OnSaveSettings);
     StartMessagingServerCommand = new CaptionCommand<string>(Resources.StartClientNow, OnStartMessagingServer, CanStartMessagingServer);
     DisplayCommonAppPathCommand = new CaptionCommand<string>(Resources.DisplayAppPath, OnDisplayAppPath);
     DisplayUserAppPathCommand = new CaptionCommand<string>(Resources.DisplayUserPath, OnDisplayUserPath);
     EditCallerIdDeviceSettingsCommand = new CaptionCommand<string>(Resources.Settings, OnEditCallerIdDeviceSettings);
 }
 public CompanyController(IEmailService emailService, IHandsetOpotunitiesService handsetOpotunitiesService, ITimeFrameService timeFrameService, IDeviceService deviceService, IRegionService regionService, ISelectionDateService selectionDateService, ILumiaTrialFormDataService lumiaTrialFormDataService)
 {
     this.deviceService = deviceService;
     this.regionService = regionService;
     this.selectionDateService = selectionDateService;
     this.lumiaTrialFormDataService = lumiaTrialFormDataService;
     this.timeFrameService = timeFrameService;
     this.handsetOpotunitiesService = handsetOpotunitiesService;
     this.emailService = emailService;
     this.companyViewModel = new CompanyViewModel();
 }
Пример #18
0
        public EventPopupView(EventPopupViewModel vm, IDeviceService deviceService)
        {
            _vm = vm;
            _deviceService = deviceService;
            DataContext = _vm;
            
            InitializeComponent();

            this.Closed += EventPopupView_Closed;
            this.Loaded += EventPopupView_Loaded;
        }
Пример #19
0
        public MainWindow()
        {
            InitializeComponent();
     
            this.Loaded += MainWindow_Loaded;
            _container = ContainerHost.Container;
            _deviceService = _container.Resolve<IDeviceService>();
            _userService = _container.Resolve<IUserService>();
            this.Register<LogoutAndShowMainMessage>(_reshowThis);

            XDispatcher.Dispatcher = Dispatcher;

        }
Пример #20
0
        protected override async Task ConfigureAsync(IDeviceService deviceService)
        {
            var pi2PortController = new Pi2GpioService();
            
            var openWeatherMapService = new OpenWeatherMapService(
                ServiceLocator.GetService<IDateTimeService>(),
                ServiceLocator.GetService<ISchedulerService>(),
                ServiceLocator.GetService<ISystemInformationService>());

            ServiceLocator.RegisterService(typeof(IOutdoorTemperatureService), new OutdoorTemperatureService(openWeatherMapService, ServiceLocator.GetService<IDateTimeService>()));
            ServiceLocator.RegisterService(typeof(IOutdoorHumidityService), new OutdootHumidityService(openWeatherMapService, ServiceLocator.GetService<IDateTimeService>()));
            ServiceLocator.RegisterService(typeof(IDaylightService), new DaylightService(openWeatherMapService, ServiceLocator.GetService<IDateTimeService>()));
            ServiceLocator.RegisterService(typeof(IWeatherService), new WeatherService(openWeatherMapService, ServiceLocator.GetService<IDateTimeService>()));
            ServiceLocator.RegisterService(typeof(OpenWeatherMapService), openWeatherMapService);

            var ccToolsFactory = new CCToolsBoardService(this, GetDevice<II2CBusService>());
            var hsrt16 = ccToolsFactory.CreateHSRT16(Device.CellarHSRT16, new I2CSlaveAddress(32));

            var garden = this.CreateArea(RoomId.Garden)
                .WithLamp(Garden.LampTerrace, hsrt16[HSRT16Pin.Relay15])
                .WithLamp(Garden.LampGarage, hsrt16[HSRT16Pin.Relay14])
                .WithLamp(Garden.LampTap, hsrt16[HSRT16Pin.Relay13])
                .WithLamp(Garden.SpotlightRoof, hsrt16[HSRT16Pin.Relay12])
                .WithLamp(Garden.LampRearArea, hsrt16[HSRT16Pin.Relay11])
                .WithSocket(Garden.SocketPavillion, hsrt16[HSRT16Pin.Relay10])
                // 9 = free
                .WithLamp(Garden.LampParkingLot, new LogicalBinaryOutput().WithOutput(hsrt16[HSRT16Pin.Relay8]).WithOutput(hsrt16[HSRT16Pin.Relay6]).WithOutput(hsrt16[HSRT16Pin.Relay7]))
                .WithButton(Garden.Button, pi2PortController.GetInput(4).WithInvertedState())
                .WithStateMachine(Garden.StateMachine, SetupStateMachine);

            garden.GetStateMachine(Garden.StateMachine).ConnectMoveNextAndToggleOffWith(garden.GetButton(Garden.Button));

            garden.SetupConditionalOnAutomation()
                .WithActuator(garden.GetLamp(Garden.LampParkingLot))
                .WithOnAtNightRange()
                .WithOffBetweenRange(TimeSpan.Parse("22:30:00"), TimeSpan.Parse("05:00:00"));

            TimerService.Tick += (s, e) => { pi2PortController.PollOpenInputPorts(); };

            await base.ConfigureAsync();
        }
Пример #21
0
        public BarViewModel(ICalendarService calendarService, 
            IUserService userService, ILifetimeScope scope, 
            IDeviceService deviceService, IBarConfigService barConfig)
        {
            _calendarService = calendarService;
            _userService = userService;
            _scope = scope;
            _deviceService = deviceService;
            _barConfig = barConfig;
            NowViewModel = scope.Resolve<NowViewModel>();
            Width = deviceService.WindowWidth;

            this.Register<ShowEventPopupMessage>(_showEventPopup);
            this.Register<HideEventPopupMessage>(_hideEventPopup);
            this.Register<RefreshCalendarMessage>(_onRefreshCalendar);
            this.Register<ShowTomorrowMessage>(_onShowTomorrow);

            _timer = new Timer();
            _timer.Interval = 5000;
            _timer.Elapsed += T_Elapsed;
            _timer.Start();
        }
Пример #22
0
 public AppController(
     IUserService userService,
     ILoginService loginService,
     IPositionService positionService,
     IAlarmService alarmService,
     IMileageReportService mileageReportService,
     IDeviceService deviceService,
     IAUserService aUserService,
     IStateService stateService, IAreaService areaService, 
     IInstructionSendService instructionSendService)
 {
     _userService = userService;
     _aUserService = aUserService;
     _loginService = loginService;
     _positionService = positionService;
     _mileageReportService = mileageReportService;
     _deviceService = deviceService;
     _stateService = stateService;
     _areaService = areaService;
     _instructionSendService = instructionSendService;
     _alarmService = alarmService;
 }
Пример #23
0
		public MainViewModel(
			IInteractionService interactionService,
			ISoundService soundService,
			ISpeakService speakService,
			ILanguageService languageService,
			IDeviceService deviceService)
		{

			this.interactionService = interactionService;
			this.soundService = soundService;
			this.speakService = speakService;
			this.languageService = languageService;
			this.deviceService = deviceService;

			this.timer = new Timer((obj) => {
				CheckFiguresToRemove();
			}, null, timerDelay, timerDelay);

			this.interactionService.InteractionOccured += InteractionService_InteractionOccured;

			//play the intro sound
			this.soundService.PlayEmbebedResourceAsync(introSound);
		}
Пример #24
0
 public MemberController(
     IDeviceService deviceService,
     IDeviceGroupService deviceGroupService,
     IPositionService positionService,
     IAreaService areaService,
     ILineService lineService,
     IAlarmService alarmService,
     IMileageReportService mileageReportService,
     IAUserService aUserService,
     IUserService userService,
     IInstructionSendService instructionSendService)
 {
     _deviceService = deviceService;
     _deviceGroupService = deviceGroupService;
     _positionService = positionService;
     _areaService = areaService;
     _lineService = lineService;
     _alarmService = alarmService;
     _mileageReportService = mileageReportService;
     _aUserService = aUserService;
     _userService = userService;
     _instructionSendService = instructionSendService;
 }
Пример #25
0
        public BarView(BarViewModel vm, 
            IDeviceService deviceService, IUIUtils uiUtils)
        {
            InitializeComponent();


            _timeEnter = this.Resources["TimeLengedFadeIn"] as Storyboard;
            _timeLeave = this.Resources["TimeLegendFadeOut"] as Storyboard;

            this._vm = vm;
            _deviceService = deviceService;
            _uiUtils = uiUtils;
            this.DataContext = vm;
            vm.MyDispatcher = Dispatcher.CurrentDispatcher;
            vm.PropertyChanged += Vm_PropertyChanged;

            this.MouseDoubleClick += BarView_MouseDoubleClick;
            this.MouseRightButtonUp += BarView_MouseRightButtonUp;
            this.MouseUp += BarView_MouseUp;
            this.Closed += BarView_Closed;
            this.Loaded += BarView_Loaded;
            this.MouseEnter += BarView_MouseEnter;
            this.MouseLeave += BarView_MouseLeave;
        }
Пример #26
0
 public AuthenticationHelper(ICachePersist cachePersist, IDeviceService deviceService)
 {
     _cachePersist = cachePersist;
     _deviceService = deviceService;
 }
Пример #27
0
 public MqttReceivedMessageHandler(IDeviceService deviceService)
 {
     _deviceService = deviceService;
 }
Пример #28
0
        private void InitData()
        {
            IBasicService  basicService  = ServiceFactory.GetService <IBasicService>();
            IDeviceService deviceService = ServiceFactory.GetService <IDeviceService>();

            int orgCount             = this.txtOrgCount.Text.Trim().ToInt();
            int relevanceDeviceCount = this.txtRelevanceDeviceCount.Text.Trim().ToInt();
            int deviceGroup          = this.txtDeviceGroup.Text.Trim().ToInt();
            int perGroupOrgCount     = orgCount / deviceGroup;

            this.BeginInvoke(new EventHandler((a, b) =>
            {
                this.pbFinish.Minimum = 0;
                this.pbFinish.Maximum = orgCount * relevanceDeviceCount;
                this.pbFinish.Value   = 0;
            })).AsyncWaitHandle.WaitOne(10);

            for (int i = 1; i <= deviceGroup; i++)
            {
                int deviceIndex = 0;

                for (int j = 1; j <= perGroupOrgCount; j++)
                {
                    int orgId = (i - 1) * perGroupOrgCount + j;

                    BasicOrganization org = new BasicOrganization()
                    {
                        OrgNumber   = "ORG" + orgId.ToString().PadLeft(4, '0'),
                        OrgName     = "网点机构" + orgId.ToString().PadLeft(4, '0'),
                        OrgAddress  = "网点机构" + orgId.ToString().PadLeft(4, '0'),
                        OrgParentId = 0
                    };

                    basicService.Save_Organization(org);

                    org.OrgFullPath = org.OrgParentId.ToString().GetOrgFullPath() + "[" + org.PkId + "]";

                    basicService.Save_Organization(org);

                    for (int k = 1; k <= relevanceDeviceCount; k++)
                    {
                        deviceIndex += 1;

                        string deviceNumber = "ABCD" + (int.Parse(i + "00000000") + deviceIndex).ToString();

                        DeviceInfo device = new DeviceInfo()
                        {
                            DeviceNumber    = deviceNumber,
                            SoftwareVersion = "000000",
                            RegisterIp      = "127.0.0.1",
                            KindCode        = 1,
                            ModelCode       = 1,
                            OrgId           = org.PkId,
                            OnLineTime      = DateTime.Now,
                            DeviceStatus    = 1
                        };

                        deviceService.Save_Info(device);

                        this.BeginInvoke(new EventHandler((a, b) => { this.pbFinish.PerformStep(); }));
                    }
                }
            }

            this.BeginInvoke(new EventHandler((a, b) => { this.btnInit.Enabled = true; }));

            MessageBox.Show("数据初始化完毕", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Пример #29
0
 public DeviceController(IDeviceService service)
 {
     _service = service;
 }
Пример #30
0
 public CarListPageViewModel(INavigationService navigationService, ICarService carService, IDeviceService deviceService)
 {
     Title = "CarListPage";
     _navigationService = navigationService;
     CarCollection      = new ObservableCollection <Car>();
     _carService        = carService;
     _deviceService     = deviceService;
 }
Пример #31
0
 public StatisticsService(ILogger <StatisticsService> logger, IDeviceService deviceService, StatisticsServiceConfiguration configuration)
     : this(logger, deviceService, new LiteDbDataStorage(configuration.StoragePath), configuration)
 {
 }
Пример #32
0
 public AutomationService(IDeviceService deviceService, RuleActionTypeRegistry ruleActionTypeRegistry)
 {
     _deviceService = deviceService;
     _ruleActionTypeRegistry = ruleActionTypeRegistry;
 }
 public AccountController(UserManager <MrsMobileUser> userManager, IOptions <SmsOptions> options, ISmsService smsService, IDeviceService deviceService, ISmsAuthanticationService smsAuthanticationService)
 {
     this.userManager              = userManager;
     this.options                  = options;
     this.smsService               = smsService;
     this.deviceService            = deviceService;
     this.smsAuthanticationService = smsAuthanticationService;
 }
 public DashboardController(IDashboardService dashboardService, IEntityService locationService, IDeviceService deviceService)
 {
     _service         = dashboardService;
     _locationService = locationService;
     _deviceService   = deviceService;
 }
Пример #35
0
 public CSharpScriptEngine(IStorageService storageService, IDeviceService deviceService)
 {
     this.storageService = storageService;
     this.deviceService  = deviceService;
 }
Пример #36
0
 public DevaceController(IMessageSession message, IDeviceService devaceService)
 {
     _message       = message;
     _devaceService = devaceService;
 }
Пример #37
0
 public DeviceController(ISessionService apiSessionService, IPersonService personService, IDeviceService deviceService) : base(apiSessionService, personService)
 {
     _deviceService = deviceService;
 }
Пример #38
0
 public DevicesController(IDeviceService service, IMapper mapper)
 {
     _deviceService = service;
     _mapper        = mapper;
 }
Пример #39
0
 public AdminController(
     IDeviceService deviceService
     )
 {
     _deviceService = deviceService;
 }
Пример #40
0
 public MainPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService,
                          IDeviceService deviceService, Realm realm)
 public DevicesViewModel(IDeviceService deviceService, IAdaptersService adaptersService)
 {
     this.deviceService   = deviceService;
     this.adaptersService = adaptersService;
 }
Пример #42
0
 public DevicesController(IDevices devices, IDeviceService deviceService, IDeviceProperties deviceProperties)
 {
     this.deviceProperties = deviceProperties;
     this.devices          = devices;
     this.deviceService    = deviceService;
 }
Пример #43
0
 public DeviceService(IDeviceService deviceService, IUnitOfWork unitOfWork)
 {
     _deviceService = deviceService;
     _unitOfWork    = unitOfWork;
 }
Пример #44
0
 public ScheduleService(IRepository <Schedule> scheduleRepositor, IDeviceService deviceService)
 {
     this.scheduleRepositor = scheduleRepositor;
     this.deviceService     = deviceService;
 }
Пример #45
0
     public TodoItemDetailViewModel(INavigationService navigationService, IPageDialogService pageDialogService,
 #if (UseAcrDialogs)
                                    IDeviceService deviceService, IUserDialogs userDialogs)
 public UserController(IDeviceService deviceService, IUserService userService)
 {
     _deviceService = deviceService;
     _userService = userService;
 }
 public EntityService(IEntityRepository entityRepository, ILogger logger, IDeviceRepository deviceRepository, IDeviceService deviceService, IDeviceTypeRepository deviceTypeRepository)
 {
     _logger               = logger;
     _entityRepository     = entityRepository;
     _deviceRepository     = deviceRepository;
     _deviceService        = deviceService;
     _deviceTypeRepository = deviceTypeRepository;
     _iotConnectClient     = new IotConnectClient(SolutionConfiguration.BearerToken, SolutionConfiguration.Configuration.EnvironmentCode, SolutionConfiguration.Configuration.SolutionKey);
 }
Пример #48
0
 public IerakstsViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IDeviceService deviceService) : base(navigationService, pageDialogService, deviceService)
 {
     SaveProfileCommand = new DelegateCommand(Save);
     CancelCommand      = new DelegateCommand(Cancel);
     DeleteCommand      = new DelegateCommand(DeleteAsync);
     OpenMapCommand     = new DelegateCommand(OpenMap);
     ShareCommand       = new DelegateCommand(Share);
     AddNewHighWoltageEquipmentCommand = new DelegateCommand(AddNewHighWoltageEquipment);
     AddNewLowWoltageEquipmentCommand  = new DelegateCommand(AddNewLowWoltageEquipment);
 }
 public SpeakerDetailPageViewModel(IPageDialogService pageDialogService, INavigationService navigationService, ICrossTextToSpeechService crossTextToSpeechService, IDeviceService deviceService)
     : base(pageDialogService, navigationService)
 {
     if (crossTextToSpeechService == null)
     {
         throw new ArgumentNullException(nameof(crossTextToSpeechService));
     }
     if (deviceService == null)
     {
         throw new ArgumentNullException(nameof(deviceService));
     }
     _crossTextToSpeechService = crossTextToSpeechService;
     _deviceService            = deviceService;
 }
Пример #50
0
 public AutomationService(IDeviceService deviceService, RuleActionTypeRegistry ruleActionTypeRegistry)
 {
     _deviceService          = deviceService;
     _ruleActionTypeRegistry = ruleActionTypeRegistry;
 }
Пример #51
0
 public DevicesController(IDeviceService deviceService, IPushNotificationService pushNotificationService)
 {
     _deviceService = deviceService;
     this.pushNotificationService = pushNotificationService;
 }
Пример #52
0
 public SampleDbContext(DbContextOptions options, IDeviceService deviceService)
     : base(options)
 {
     DeviceService = deviceService;
 }
 public DeviceOrchestrator(IDeviceService service, IGatewayService gatewayService, IMapper mapper) : base(mapper)
 {
     _service        = service;
     _gatewayService = gatewayService;
 }
Пример #54
0
 public MainTabbedPageViewModel(INavigationService navigationService, IApplicationStore applicationStore,
                                IDeviceService deviceService)
     : base(navigationService, applicationStore, deviceService)
 {
     Title = "2017年微软最有价值专家中国峰会";
 }
Пример #55
0
 protected virtual void OnDeviceDisconnected(IDeviceService device)
 {
     DeviceDisconnected?.Invoke(device);
 }
Пример #56
0
 public SettingsViewModel(ISettingService settingService, IMessagingService messagingService, IDeviceService deviceService)
 {
     _settingService                   = settingService;
     _messagingService                 = messagingService;
     _deviceService                    = deviceService;
     SaveSettingsCommand               = new CaptionCommand <string>(Resources.Save, OnSaveSettings);
     StartMessagingServerCommand       = new CaptionCommand <string>(Resources.StartClientNow, OnStartMessagingServer, CanStartMessagingServer);
     DisplayCommonAppPathCommand       = new CaptionCommand <string>(Resources.DisplayAppPath, OnDisplayAppPath);
     DisplayUserAppPathCommand         = new CaptionCommand <string>(Resources.DisplayUserPath, OnDisplayUserPath);
     EditCallerIdDeviceSettingsCommand = new CaptionCommand <string>(Resources.Settings, OnEditCallerIdDeviceSettings);
 }
Пример #57
0
 public GalleryController(IDealerService dealerService, IVehicleService<Vehicle> vehicleService,IDeviceService<Device> deviceService)
 {
     this.dealerService = dealerService;
     this.vehicleServce = vehicleService;
     this.deviceService = deviceService;
 }
Пример #58
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DevicesController"/> class.
 /// </summary>
 /// <param name="deviceService">The device service.</param>
 public DevicesController(IDeviceService deviceService)
 {
     this.deviceService = deviceService;
 }
Пример #59
0
 public MainPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService,
                          IDeviceService deviceService, IAppDataContext dataContext, ICloudService cloudService)
        public AddChatOptionPopupPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, IDeviceService deviceService, IFirebasePushNotification firebasePushNotification,
                                               IBarcodeScannerService barcodeScanner, IUserDialogs userDialogs, SyncServerConnection syncServerConnection, TronConnection tronConnection, WalletManager walletManager, TokenMessagesQueueService tokenMessagesQueueService, ConverseDatabase converseDatabase)
            : base(navigationService, pageDialogService, deviceService, firebasePushNotification, userDialogs, syncServerConnection, tronConnection, walletManager, tokenMessagesQueueService, converseDatabase)
        {
            _barcodeScanner = barcodeScanner;

            ScanCommand     = new DelegateCommand(OnScanCommandExecuted);
            OpenChatCommand = new DelegateCommand(OpenChatCommandExecuted);
        }