예제 #1
0
        public Dictionary <DeviceId, IEnumerable <JobEntryDto> > GetAllJobs(SortRequest sort,
                                                                            IList <AdvancedFilterRequest> filterRequest)
        {
            var allDeviceIds = _persistenceProvider.GetAllDeviceIds().ToList();
            var data         = new Dictionary <DeviceId, IEnumerable <JobEntryDto> >();

            foreach (var deviceId in allDeviceIds)
            {
                data[deviceId] = GetJobs(deviceId, null, sort, filterRequest);
            }
            return(data);
        }
예제 #2
0
        private void NotifySmartDevicesForConfigChange()
        {
            var infos = _persistenceProvider.GetAllDeviceIds().ToArray();

            _fcmHandler.SendGetConfig(infos);
        }
예제 #3
0
        public void RemoveAllJobs()
        {
            _persistenceProvider.RemoveAllJobs();

            _fcmMessageHandler.SendGetDataWithoutNotification(_persistenceProvider.GetAllDeviceIds().ToArray());
        }