DatabaseFunctions - nisbweb/app GitHub Wiki

This is a class in the project which will exposes the following functions:

  1. makeTables - Creates the initial tables needed for the App
  2. doGuestLogin - Makes DB changes for guest login
  3. doUserLogin - Makes DB changes for user login
  4. isGuestLogged - Checks if guest is logged in
  5. isUserLogged - Checks if user is logged in
  6. getUserEmail - gets the current user email
  7. getUserName - gets the current user name
  8. getUserData - gets the current user Details in JSON format
  9. getUserIEEEno - gets the current user IEEE no
  10. doGuestLogout - logout guest and clear DB
  11. doUserLogout - logout user and clear DB
  12. addNotification - Add notification entry to DB
  13. getNotifications - get all notifications from DB
  14. clearNotifications - clear all notifications from DB