Esempio n. 1
0
        private bool DoesAlertNeedsFrameImage(DatabaseAlert dbAlert)
        {
            if (dbAlert.SnoozedUntil == null || dbAlert.SnoozedUntil.Value < DateTime.Now)
            {
                return(true);
            }
            else
            {
                List <DatabaseNotification> dbNotifications = _dbQueryService.GetNotificationsForAlert(dbAlert.AlertId);
                foreach (var dbNotification in dbNotifications)
                {
                    if (_notificationService.DoesNotificationNeedImage(dbAlert, dbNotification))
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }