1 package edu.pdx.cs410J.whitlock.client;
2
3 import edu.pdx.cs410J.AbstractAppointmentBook;
4
5 import java.util.ArrayList;
6 import java.util.Collection;
7
8 public class AppointmentBook extends AbstractAppointmentBook<Appointment>
9 {
10
11 private Collection<Appointment> appts = new ArrayList<>();
12
13 @Override
14 public String getOwnerName()
15 {
16 return "My Owner";
17 }
18
19 @Override
20 public Collection<Appointment> getAppointments()
21 {
22 return this.appts;
23 }
24
25 @Override
26 public void addAppointment( Appointment appt )
27 {
28 this.appts.add(appt);
29 }
30 }