@@ -0,0 +1,2488 @@
+/*%0A * Copyright (c) 2014 Personal-Health-Monitoring-System%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * %09http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.cse3310.phms.model;%0A%0Aimport com.activeandroid.Model;%0Aimport com.activeandroid.annotation.Column;%0Aimport com.activeandroid.annotation.Table;%0A%0A@Table(name = %22Appointment%22)%0Apublic class Appointment extends Model %7B%0A    @Column private Doctor doctor;%0A    @Column private String purpose;%0A    @Column private long time;%0A%0A    /**%0A     * Instantiates a new Appointment.%0A     */%0A    public Appointment() %7B%7D%0A%0A    /**%0A     * Instantiates a new Appointment.%0A     *%0A     * @param doctor the doctor%0A     * @param purpose the purpose%0A     * @param time the time%0A     */%0A    public Appointment(Doctor doctor, String purpose, long time) %7B%0A        this.doctor = doctor;%0A        this.purpose = purpose;%0A        this.time = time;%0A    %7D%0A%0A    /**%0A     * Gets doctor.%0A     *%0A     * @return the doctor%0A     */%0A    public Doctor getDoctor() %7B%0A        return doctor;%0A    %7D%0A%0A    /**%0A     * Sets doctor.%0A     *%0A     * @param doctor the doctor%0A     * @return this appointment object%0A     */%0A    public Appointment setDoctor(Doctor doctor) %7B%0A        this.doctor = doctor;%0A        return this;%0A    %7D%0A%0A    /**%0A     * Gets purpose for visiting.%0A     *%0A     * @return the purpose%0A     */%0A    public String getPurpose() %7B%0A        return purpose;%0A    %7D%0A%0A    /**%0A     * Sets purpose for visiting.%0A     *%0A     * @param purpose the purpose%0A     * @return this appointment object%0A     */%0A    public Appointment setPurpose(String purpose) %7B%0A        this.purpose = purpose;%0A        return this;%0A    %7D%0A%0A    /**%0A     * Gets time of the appointment.%0A     *%0A     * @return the time in milliseconds%0A     */%0A    public long getTime() %7B%0A        return time;%0A    %7D%0A%0A    /**%0A     * Sets time of the appointment.%0A     *%0A     * @param time the time in milliseconds%0A     * @return this appointment object%0A     */%0A    public Appointment setTime(long time) %7B%0A        this.time = time;%0A        return this;%0A    %7D%0A%7D%0A

Add Appointment class