| 894 | } |
| 895 | |
| 896 | Value ServicesTable::InNotificationPeriodAccessor(const Value& row) |
| 897 | { |
| 898 | Service::Ptr service = static_cast<Service::Ptr>(row); |
| 899 | |
| 900 | if (!service) |
| 901 | return Empty; |
| 902 | |
| 903 | for (const Notification::Ptr& notification : service->GetNotifications()) { |
| 904 | TimePeriod::Ptr timeperiod = notification->GetPeriod(); |
| 905 | |
| 906 | if (!timeperiod || timeperiod->IsInside(Utility::GetTime())) |
| 907 | return 1; |
| 908 | } |
| 909 | |
| 910 | return 0; |
| 911 | } |
| 912 | |
| 913 | Value ServicesTable::ContactsAccessor(const Value& row) |
| 914 | { |
nothing calls this directly
no test coverage detected