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); }
private void NotifySmartDevicesForConfigChange() { var infos = _persistenceProvider.GetAllDeviceIds().ToArray(); _fcmHandler.SendGetConfig(infos); }
public void RemoveAllJobs() { _persistenceProvider.RemoveAllJobs(); _fcmMessageHandler.SendGetDataWithoutNotification(_persistenceProvider.GetAllDeviceIds().ToArray()); }