DailyScheduleDetails¶
-
public class
DailyScheduleDetails
¶ Domain object representing the schedule of sending daily pill reminders. This is tied to a pill regimen.
Constructors¶
DailyScheduleDetails¶
-
public
DailyScheduleDetails
()¶ Constructs an instance without setting any fields.
DailyScheduleDetails¶
-
public
DailyScheduleDetails
(int repeatIntervalInMinutes, int pillWindowInHours, int bufferOverDosageTimeInMinutes)¶ Constructs an instance of the schedule.
Parameters: - repeatIntervalInMinutes – number of minutes to wait before next retry for the reminder
- pillWindowInHours – valid time range to retry the reminder in-case of subscriber unreachable, in hours
- bufferOverDosageTimeInMinutes – the time in minutes after the first reminder will be sent, if no adherence confirmation
Methods¶
getBufferOverDosageTimeInMinutes¶
-
public int
getBufferOverDosageTimeInMinutes
()¶ Returns the buffer over dosage time in minutes. The first reminder will be fired after this time passes from the dosage time if no there was no adherence confirmation.
Returns: the time in minutes after the first reminder will be sent, if no adherence confirmation
getPillWindowInHours¶
-
public int
getPillWindowInHours
()¶ Returns: valid time range to retry the reminder in-case of subscriber unreachable, in hours
getRepeatIntervalInMinutes¶
-
public int
getRepeatIntervalInMinutes
()¶ Returns: number of minutes to wait before next retry for the reminder
setBufferOverDosageTimeInMinutes¶
-
public void
setBufferOverDosageTimeInMinutes
(int bufferOverDosageTimeInMinutes)¶ Sets the buffer over dosage time in minutes. The first reminder will be fired after this time passes from the dosage time if no there was no adherence confirmation.
Parameters: - bufferOverDosageTimeInMinutes – the time in minutes after the first reminder will be sent, if no adherence confirmation