From 8d5f01325cd73e3b45b077870ecc4f6d1487e82c Mon Sep 17 00:00:00 2001 From: Mary Tran Date: Sat, 24 Nov 2018 15:17:40 -0500 Subject: [PATCH] Added a small clarification thing --- .../olympus/olympusservices/DBHelper.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java index 2423793..8448b52 100644 --- a/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java +++ b/OlympusServices/app/src/main/java/com/uottawa/olympus/olympusservices/DBHelper.java @@ -884,10 +884,26 @@ public class DBHelper extends SQLiteOpenHelper { } + /** + * Returns a list of unbooked time slots that are at least 30 minutes + * @param serviceProvider + * @param year + * @param month + * @param day + * @return list of [start hour, start minute, end hour, end minute] of available timeslots + */ public List getAvailabilityByDate(ServiceProvider serviceProvider, int year, int month, int day){ return getAvailabilityByDate(serviceProvider.getUsername(), year, month, day); } + /** + * Returns a list of unbooked time slots that are at least 30 minutes + * @param serviceProvider + * @param year + * @param month + * @param day + * @return list of [start hour, start minute, end hour, end minute] of available timeslots + */ public List getAvailabilityByDate(String serviceProvider, int year, int month, int day){ List availabilities = new ArrayList<>();