MedicineResponse

public class MedicineResponse

Medicine details returned from the pill-reminder module.

See also: DosageResponse

Constructors

MedicineResponse

public MedicineResponse(String name, LocalDate startDate, LocalDate endDate)

Constructs a medicine response.

Parameters:
  • name – the name of the medicine
  • startDate – the start date for taking this medicine
  • endDate – the end date for taking this medicine

Methods

getEndDate

public LocalDate getEndDate()
Returns:the end date for taking this medicine

getName

public String getName()
Returns:the name of the medicine

getStartDate

public LocalDate getStartDate()
Returns:the start date for taking this medicine