public FifthplayDeviceConnector(IFifthplayRepository fifthplayRepository,
            ICredentialsRepository credentialsRepository, IDeviceRepository deviceRepository)
        {
            if (fifthplayRepository == null) throw new ArgumentNullException(nameof(fifthplayRepository));
            if (credentialsRepository == null) throw new ArgumentNullException(nameof(credentialsRepository));
            if (deviceRepository == null) throw new ArgumentNullException(nameof(deviceRepository));

            _fifthplayRepository = fifthplayRepository;
            _credentialsRepository = credentialsRepository;
            _deviceRepository = deviceRepository;
        }
Beispiel #2
0
        public ActionExecutor(ILocationRepository locationRepository, IActionRepository actionRepository, ILogger logger,
            ICredentialsRepository credentialsRepository, IFifthplayRepository fifthplayRepository,
            IIftttRepository iftttRepository)
        {
            if (locationRepository == null) throw new ArgumentNullException(nameof(locationRepository));
            if (actionRepository == null) throw new ArgumentNullException(nameof(actionRepository));
            if (logger == null) throw new ArgumentNullException(nameof(logger));
            if (credentialsRepository == null) throw new ArgumentNullException(nameof(credentialsRepository));
            if (fifthplayRepository == null) throw new ArgumentNullException(nameof(fifthplayRepository));
            if (iftttRepository == null) throw new ArgumentNullException(nameof(iftttRepository));

            _locationRepository = locationRepository;
            _actionRepository = actionRepository;
            _logger = logger;
            _credentialsRepository = credentialsRepository;
            _fifthplayRepository = fifthplayRepository;
            _iftttRepository = iftttRepository;
        }
        public FifthplayDeviceConnector(IFifthplayRepository fifthplayRepository,
                                        ICredentialsRepository credentialsRepository, IDeviceRepository deviceRepository)
        {
            if (fifthplayRepository == null)
            {
                throw new ArgumentNullException(nameof(fifthplayRepository));
            }
            if (credentialsRepository == null)
            {
                throw new ArgumentNullException(nameof(credentialsRepository));
            }
            if (deviceRepository == null)
            {
                throw new ArgumentNullException(nameof(deviceRepository));
            }

            _fifthplayRepository   = fifthplayRepository;
            _credentialsRepository = credentialsRepository;
            _deviceRepository      = deviceRepository;
        }
Beispiel #4
0
        public ActionExecutor(ILocationRepository locationRepository, IActionRepository actionRepository, ILogger logger,
                              ICredentialsRepository credentialsRepository, IFifthplayRepository fifthplayRepository,
                              IIftttRepository iftttRepository)
        {
            if (locationRepository == null)
            {
                throw new ArgumentNullException(nameof(locationRepository));
            }
            if (actionRepository == null)
            {
                throw new ArgumentNullException(nameof(actionRepository));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (credentialsRepository == null)
            {
                throw new ArgumentNullException(nameof(credentialsRepository));
            }
            if (fifthplayRepository == null)
            {
                throw new ArgumentNullException(nameof(fifthplayRepository));
            }
            if (iftttRepository == null)
            {
                throw new ArgumentNullException(nameof(iftttRepository));
            }

            _locationRepository    = locationRepository;
            _actionRepository      = actionRepository;
            _logger                = logger;
            _credentialsRepository = credentialsRepository;
            _fifthplayRepository   = fifthplayRepository;
            _iftttRepository       = iftttRepository;
        }