Constructor
new UserProfile(storage)
Parameters:
| Name |
Type |
Description |
storage |
Storage
|
Storage object. |
- Source:
Methods
addUserProfile(user)
Adds a new user profile to the storage.
Parameters:
| Name |
Type |
Description |
user |
string
|
The name of the new user profile. |
- Source:
deleteUserProfile(user)
Deletes a given user profile.
Parameters:
| Name |
Type |
Description |
user |
string
|
The name of the user profile to delete. |
- Source:
renameUserProfile(user, newUser)
Renames a given user profile.
Parameters:
| Name |
Type |
Description |
user |
string
|
The name of the user profile to rename. |
newUser |
string
|
The new name for the user profile. |
- Source:
switchToUserProfile(newUser)
Switches to another user profile.
Parameters:
| Name |
Type |
Description |
newUser |
string
|
The name of the user profile to switch to. |
- Source: