Package lukas.wais.smart.mirror.model
Class Person
java.lang.Object
lukas.wais.smart.mirror.model.Person
public class Person
extends java.lang.Object
Represents Persons, the users of the mirror.
- Author:
- Lukas Wais
-
Property Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description javafx.beans.property.StringProperty
emailProperty()
boolean
equals(java.lang.Object obj)
javafx.beans.property.StringProperty
firstNameProperty()
java.lang.String
getEmail()
java.lang.String
getFirstName()
java.lang.String
getID()
java.lang.String
getLastName()
java.lang.String
getNickname()
javafx.beans.property.StringProperty
lastNameProperty()
javafx.beans.property.StringProperty
nicknameProperty()
void
setID(java.lang.String ID)
Sets the ID of the user.java.lang.String
toString()
-
Property Details
-
firstName
public javafx.beans.property.StringProperty firstNameProperty- See Also:
getFirstName()
-
lastName
public javafx.beans.property.StringProperty lastNameProperty- See Also:
getLastName()
-
nickname
public javafx.beans.property.StringProperty nicknameProperty- See Also:
getNickname()
-
email
public javafx.beans.property.StringProperty emailProperty- See Also:
getEmail()
-
-
Constructor Details
-
Method Details
-
getID
public java.lang.String getID()- Returns:
- ID of the User as String.
-
firstNameProperty
public javafx.beans.property.StringProperty firstNameProperty()- See Also:
getFirstName()
-
lastNameProperty
public javafx.beans.property.StringProperty lastNameProperty()- See Also:
getLastName()
-
nicknameProperty
public javafx.beans.property.StringProperty nicknameProperty()- See Also:
getNickname()
-
emailProperty
public javafx.beans.property.StringProperty emailProperty()- See Also:
getEmail()
-
getFirstName
public java.lang.String getFirstName()- Returns:
- the first name of the User as String.
-
getLastName
public java.lang.String getLastName()- Returns:
- the last name of the User as String.
-
getNickname
public java.lang.String getNickname()- Returns:
- the nickname of the User as String.
-
getEmail
public java.lang.String getEmail()- Returns:
- the email of the User as String.
-
setID
public void setID(java.lang.String ID)Sets the ID of the user.- Parameters:
ID
- new ID of the user.
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-