Skip to content

Commit

Permalink
add errormessage when adding appointment doesn't work
Browse files Browse the repository at this point in the history
this happens since the checkconflictswith returns something useful
  • Loading branch information
carl committed Jun 12, 2011
1 parent 6316df0 commit dd6573d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion project/src/client/Client.java
Expand Up @@ -26,14 +26,17 @@ public static void main(String[] args) throws Exception
System.out.println("starting addAppointment");
HashSet <String> userEmails = new HashSet <String>();
userEmails.add("alice@a.com");
addApp.addAppointment(
Boolean success = addApp.addAppointment(
new GregorianCalendar(2011, 6, 19, 12, 30),
new GregorianCalendar(2011, 6, 19, 13, 30),
"title",
"notes",
false, // isPrivate
AppointmentType.FREE,
userEmails);
if (!success)
System.out.println("Couldn't add appointment");


System.out.println("starting viewAppointments:");
viewAppointments(viewApp.viewAppointments("alice@a.com"));
Expand Down

0 comments on commit dd6573d

Please sign in to comment.