Skip to content

Application Stub Calls

joemelt101 edited this page Apr 18, 2016 · 3 revisions

##Landing Page None – this is a static webpage with links

Login Page

User login(string email, string password)
User getLoggedInUserOrFail()

Registration Page

User getLoggedInUserOrFail()
User createAccount(string email1, string email2, string username, string password1, string password2)

Search Page (Currently Static Page Incomplete)

User getLoggedInUserOrFail()
User
    + User[] search(string searchString, SearchType searchType)    
    + string getAlias()
    + string getStatus()
    + Location getLocation()
    + Game[] getGames()

Settings Page

User getLoggedInUserOrFail()
User
    + string getAlias()
    + bool setAlias(string alias)
    + string getUsername()
    + string getStatus()
    + bool setStatus(Status newStatus)
    + string getEmail()
    + bool setEmail(string newEmail)
    + Location getLocation()
    + bool setLocation(string city, string state, string zipcode)
    + Game[] getGames()
    + bool setGames(Game[] games)
    + bool addGame(Game game)
    + bool removeGame(Game game)

View Friends Page

User getLoggedInUserOrFail()
User
    + int getUserID()
    + string getAlias()
    + string getUsername()
    + string getStatus()
    + string getEmail()
    + Location getLocation()
    + User[] getFriends()
    + Game[] getGames()
    + User[] search(string searchString, SearchType searchType)

Dashboard / Other Dashboard

Needs: $_POST['id'] ==> The id to load for the dashboard, if none supplied, will assume user from getLoggedInUserOrFail()
User getLoggedInUserOrFail()
User
    + int getUserID()
    + string getAlias()
    + string getUsername()
    + string getStatus()
    + string getEmail()
    + Location getLocation()
    + User[] getFriends()
    + Game[] getGames()
    + User[] search(string searchString, SearchType searchType)
Clone this wiki locally