Class User
- java.lang.Object
-
- edu.cnm.deepdive.teamassignmentsandroid.model.pojo.User
-
public class User extends Object
Get and sets user information for application.
-
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getConnected()
Gets the date/time user connects to service.Date
getCreationDate()
Gets Date user creates login.String
getDisplayName()
Gets users display name.List<Group>
getGroups()
Gets list of GroupsLong
getId()
Gets a Long for user id.String
getOauthKey()
Gets the oauth key for the user.List<Task>
getTasks()
gets list of tasksvoid
setDisplayName(String displayName)
Sets the users display name.void
setOauthKey(String oauthKey)
Sets the oauth key for user.
-
-
-
Method Detail
-
getId
public Long getId()
Gets a Long for user id.- Returns:
- returns long for id.
-
getConnected
public Date getConnected()
Gets the date/time user connects to service.- Returns:
- returns the date/time of connection.
-
getCreationDate
public Date getCreationDate()
Gets Date user creates login.- Returns:
- returns Date of connection.
-
getDisplayName
public String getDisplayName()
Gets users display name.- Returns:
- String of users display name.
-
setDisplayName
public void setDisplayName(String displayName)
Sets the users display name.- Parameters:
displayName
- is String of user's name.
-
getOauthKey
public String getOauthKey()
Gets the oauth key for the user.- Returns:
- returns an oauth key for authentication.
-
setOauthKey
public void setOauthKey(String oauthKey)
Sets the oauth key for user.- Parameters:
oauthKey
- return in String format
-
-