public AnnouncementsData view(DateTime aTime) {
Event e = getEvent();
if (e == null) {
return null;
}
AnnouncementsData result = new AnnouncementsData();
result.setTime(aTime);
result.setEmpty(!e.hasActiveAnnouncements(aTime));
if (!result.isEmpty()){
result.setMessages(e.getActiveAnnouncementsString(aTime));
}
result.setNextDisplayChange(getNextChangeAnnouncements(e, aTime));
return result;
}