コード例 #1
0
        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;
            }
コード例 #4
0
        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;
        }
コード例 #5
0
        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;
 }
コード例 #7
0
 public IssueDetailsPageViewModel(IDeviceService deviceService,
     ILoader loader,
     IProgressService progressService,
     INavigationService navigationService)
     : base(loader, progressService, navigationService)
 {
     _deviceService = deviceService;
 }
コード例 #8
0
        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
ファイル: AUserService.cs プロジェクト: hhahh2011/CH.Spartan
 public AUserService(IRepository rep,
     ICacheService cacheService, IDeviceService deviceService, INodeService nodeService, IUserService userService)
 {
     _rep = rep;
     _cacheService = cacheService;
     _deviceService = deviceService;
     _nodeService = nodeService;
     _userService = userService;
 }
コード例 #11
0
ファイル: DevicesController.cs プロジェクト: bitwarden/core
 public DevicesController(
     IDeviceRepository deviceRepository,
     IDeviceService deviceService,
     UserManager<User> userManager)
 {
     _deviceRepository = deviceRepository;
     _deviceService = deviceService;
     _userManager = userManager;
 }
コード例 #12
0
ファイル: NowView.model.cs プロジェクト: jakkaj/DayBar
 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;
 }
コード例 #15
0
 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);
 }
コード例 #17
0
 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
ファイル: EventPopupView.xaml.cs プロジェクト: jakkaj/DayBar
        public EventPopupView(EventPopupViewModel vm, IDeviceService deviceService)
        {
            _vm = vm;
            _deviceService = deviceService;
            DataContext = _vm;
            
            InitializeComponent();

            this.Closed += EventPopupView_Closed;
            this.Loaded += EventPopupView_Loaded;
        }
コード例 #19
0
ファイル: MainWindow.xaml.cs プロジェクト: jakkaj/DayBar
        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
ファイル: BarView.model.cs プロジェクト: jakkaj/DayBar
        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
ファイル: AppController.cs プロジェクト: hhahh2011/CH.Spartan
 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
ファイル: BarView.xaml.cs プロジェクト: jakkaj/DayBar
        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
ファイル: AuthenticationHelper.cs プロジェクト: jakkaj/DayBar
 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;
 }
コード例 #33
0
 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
ファイル: DeviceController.cs プロジェクト: Holden1997/IoT
 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)
コード例 #41
0
 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)
コード例 #46
0
 public UserController(IDeviceService deviceService, IUserService userService)
 {
     _deviceService = deviceService;
     _userService = userService;
 }
コード例 #47
0
 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
ファイル: IerakstsViewModel.cs プロジェクト: erdugen/Vers-1.1
 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);
 }
コード例 #49
0
 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;
 }
コード例 #53
0
 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)
コード例 #60
0
        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);
        }