DatabaseFunctions - nisbweb/app GitHub Wiki
This is a class in the project which will exposes the following functions:
- makeTables - Creates the initial tables needed for the App
- doGuestLogin - Makes DB changes for guest login
- doUserLogin - Makes DB changes for user login
- isGuestLogged - Checks if guest is logged in
- isUserLogged - Checks if user is logged in
- getUserEmail - gets the current user email
- getUserName - gets the current user name
- getUserData - gets the current user Details in JSON format
- getUserIEEEno - gets the current user IEEE no
- doGuestLogout - logout guest and clear DB
- doUserLogout - logout user and clear DB
- addNotification - Add notification entry to DB
- getNotifications - get all notifications from DB
- clearNotifications - clear all notifications from DB