Package lukas.wais.smart.mirror.model
Class CurrentUser
java.lang.Object
lukas.wais.smart.mirror.model.CurrentUser
public class CurrentUser
extends java.lang.Object
Defines the current user.
Implemented as Singleton. The default value of the user is null.
- Author:
- Lukas Wais
-
Field Summary
Fields Modifier and Type Field Description static CurrentUserinstance -
Constructor Summary
Constructors Constructor Description CurrentUser() -
Method Summary
Modifier and Type Method Description static CurrentUsergetInstance()PersongetUser()java.util.ArrayList<java.lang.String>getWidgets()voidsetUser(Person person)This methods sets the current user.
-
Field Details
-
Constructor Details
-
CurrentUser
public CurrentUser()
-
-
Method Details
-
getInstance
- Returns:
- instance of the CurrentUser
-
getUser
- Returns:
- returns the current user.
-
setUser
This methods sets the current user. You are changing the current profile indirectly. It personalizes the mirror.- Parameters:
person- sets the new person from which the settings are loaded.
-
getWidgets
public java.util.ArrayList<java.lang.String> getWidgets()
-