MilestoneAlerts

public class MilestoneAlerts

MilestoneAlerts contains the alert timings of all the windows of a milestone.

See also: org.motechproject.scheduletracking.service.EnrollmentService

Constructors

MilestoneAlerts

public MilestoneAlerts()

Default constructor.

Methods

getAlertTimings

public Map<String, List<DateTime>> getAlertTimings()

Gives the alert timings for all the windows. Note : To get the alert timings of a particular window, use the corresponding getWindowAlertTimings method.

Returns:a map of window names to the list of their alert timings

getDueWindowAlertTimings

public List<DateTime> getDueWindowAlertTimings()

Gives the alert timings of due window of the milestone.

Returns:the alert timings of due window

getEarliestWindowAlertTimings

public List<DateTime> getEarliestWindowAlertTimings()

Gives the alert timings of earliest window of the milestone.

Returns:the alert timings of earliest window

getLateWindowAlertTimings

public List<DateTime> getLateWindowAlertTimings()

Gives the alert timings of late window of the milestone.

Returns:the alert timings of late window

getMaxWindowAlertTimings

public List<DateTime> getMaxWindowAlertTimings()

Gives the alert timings of max window of the milestone.

Returns:the alert timings of max window