package caltool.schedule;

import mvp.*;

/****
 *
 * RemindWhen defines how soon before a scheduled item the reminder is to be
 * sent.  The time units are minutes, hours, or days.
 *
 */

public class RemindWhen extends Model {

    /**
     * Construct an empty RemindWhen.
     */
    public RemindWhen() {
        time = 0;
        unit = null;
    }

    /**
     * Construct a RemindWhen with the given time and unit.
     */
    public RemindWhen(int time, ReminderTimeUnit unit) {
        this.time = time;
        this.unit = unit;
    }

    /**
     * Return the time.
     */
    public int getTime() {
        return time;
    }

    /**
     * Return the time unit.
     */
    public ReminderTimeUnit getTimeUnit() {
        return unit;
    }

    /** The amount of time in hours, days, or minutes */
    protected int time;

    /** The unit of time */
    protected ReminderTimeUnit unit;

}