Meeting Notes, April 26 - swansond/LavatoryLocator GitHub Wiki

Talked about the application/server interface.
Queries from front -> back:
a. Searching for bathrooms (ADVANCED search only?)

userSearch(String bldgName, String bathroomName, int floor, Coordinates userLocation, Coordinates searchLocation, int maxDist, int minRating, char bathroomType)

b. Bathroom summary screen

getReviews(int bathroomId, int pageNo, SortParam category)

c. Updates:

  • Ratings are automatic
    userHasReview(int uid, int bid)
    updateReview(int userId, int bathroomId, int rating, String review)

  • Adding a bathroom is moderated
    requestAdd(Bathroom, User?)

  • Updating a bathroom is moderated
    requestUpdate(int bid, Bathroom newBathroom, int uid)

  • Deleting a bathroom is not automatic
    requestDelete(int bid, int uid)

d. Marking a review as helpful

markAsHelpful(int uid, int reviewId)

SEARCH RESULTS SCREEN VIEW: Each bathroom entry contains:

  • name
  • building (does name include building name?)
  • floor
  • average rating
  • revs

  • distance from current location or search location
  • type of bathroom

BATHROOM SUMMARY SCREEN:
Everything about the bathroom, including its reviews, but only X of them at a time

DB NOTES: store number of ratings, total rating number: some way to get the average