User

This class stores the user data.

Properties

Properties



id    string

Id of the User. The users phone number is taken as the id.


websites    Entity

Stores all the websites created by the user.

Methods



addWebsite(website)    boolean

Adds the website to the dataset.


deleteWebsite(companyName)    boolean

Deletes the website from the dataset using the companyName of the website.


getWebsite(companyName)    Website

Gets the website from the dataset using its companyName.


selectWebsite(companyName)    boolean

Selects the webiste with the given companyName


getSelectedWebsite()    Website

Returns the current selected website.