package edu.pdx.cs410J.chances;

import edu.pdx.cs410J.AbstractAppointment;

import java.util.Date;

public class Appointment extends AbstractAppointment {
  private String beginTime;
  private String endTime;
  private String description;

  public Appointment() {}

  public Appointment(String description) {
    this.description = description;
  }

  /**
   * Set the time this appointment begins.
   */
  public void setBeginTime(Date beginTime) {
    this.beginTime = beginTime.toString();
  }

  /**
   * Set the time this appointment ends.
   */
  public void setEndTime(Date endTime) {
    this.endTime = endTime.toString();
  }

  /**
   * Get the time this appointment begins.
   *
   * @return String representation of appointment begin time
     */
  @Override
  public String getBeginTimeString() {
    return beginTime;
  }

  /**
   * Get the time this appointment ends.
   *
   * @return String representation of appointment end time
   */
  @Override
  public String getEndTimeString() {
    return endTime;
  }

  /**
   * Get the description of this appointment.
   *
   * @return Description of this appointment
   */
  @Override
  public String getDescription() {
    return description;
  }
}

@@ -159,22 +159,20 @@
 private 
-String
+Date
  beginTi
@@ -185,22 +185,20 @@
 private 
-String
+Date
  endTime
@@ -467,35 +467,24 @@
  = beginTime
-.toString()
 ;%0A  %7D%0A%0A  /**
@@ -602,19 +602,8 @@
 Time
-.toString()
 ;%0A  
@@ -791,32 +791,43 @@
 return beginTime
+.toString()
 ;%0A  %7D%0A%0A  /**%0A   
@@ -975,32 +975,32 @@
 dTimeString() %7B%0A
-
     return endTi
@@ -993,32 +993,43 @@
   return endTime
+.toString()
 ;%0A  %7D%0A%0A  /**%0A   

Store begin and end times as dates