Search in sources :

Example 1 with NamesInADate

use of com.alexstyl.specialdates.events.namedays.NamesInADate in project Memento-Calendar by alexstyl.

the class DailyReminderIntentService method notifyForNamedaysFor.

private void notifyForNamedaysFor(Date date) {
    NamedayLocale locale = namedayPreferences.getSelectedLanguage();
    NamedayCalendar namedayCalendar = namedayCalendarProvider.loadNamedayCalendarForLocale(locale, date.getYear());
    NamesInADate names = namedayCalendar.getAllNamedaysOn(date);
    if (containsNames(names)) {
        notifier.forNamedays(names.getNames(), date);
    }
}
Also used : NamedayCalendar(com.alexstyl.specialdates.events.namedays.calendar.NamedayCalendar) NamedayLocale(com.alexstyl.specialdates.events.namedays.NamedayLocale) NamesInADate(com.alexstyl.specialdates.events.namedays.NamesInADate)

Aggregations

NamedayLocale (com.alexstyl.specialdates.events.namedays.NamedayLocale)1 NamesInADate (com.alexstyl.specialdates.events.namedays.NamesInADate)1 NamedayCalendar (com.alexstyl.specialdates.events.namedays.calendar.NamedayCalendar)1