public class User
Represents a User.
Nested classes | |
---|---|
public enum User.Role
|
Role of user. |
Public Constructors | |
---|---|
User(String userId)
Construct a new User |
Public methods | |
---|---|
String |
getUserId()
Return user id. |
void |
setUserId(String userId)
Set user id. |
String |
getName()
Return user name. |
void |
setName(String name)
Set user name. |
String |
getAvatarUrl()
Return user avatar url. |
void |
setAvatarUrl(String avatarUrl)
Set user avatar url. |
User.Role |
getRole()
Return user role. |
void |
setRole(User.Role role)
Set user role. |
User(String userId)
Construct a new User.
Parameters | |
---|---|
userId |
The user id. |
String getUserId()
Return user id.
void setUserId(String userId)
Set user id.
Parameters | |
---|---|
userId |
The user id. |
String getName()
Return user name.
void setName(String name)
Set user name.
Parameters | |
---|---|
name |
The user name. |
String getAvatarUrl()
Return user avatar url.
void setAvatarUrl(String avatarUrl)
Set user avatar url.
Parameters | |
---|---|
avatarUrl |
The user avatar url. |
User.Role getRole()
Return user role.
void setRole(User.Role role)
Set user role.
Parameters | |
---|---|
role |
The User.Role instance. |