Suggestions

close search

User

public class User



Represents a User.



Summary


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.


Public constructors


User

User(String userId)

Construct a new User.

Parameters
userId

The user id.



Public methods


getUserId

String getUserId()

Return user id.



setUserId

void setUserId(String userId)

Set user id.

Parameters
userId

The user id.



getName

String getName()

Return user name.



setName

void setName(String name)

Set user name.

Parameters
name

The user name.



getAvatarUrl

String getAvatarUrl()

Return user avatar url.



setAvatarUrl

void setAvatarUrl(String avatarUrl)

Set user avatar url.

Parameters
avatarUrl

The user avatar url.



getRole

User.Role getRole()

Return user role.



setRole

void setRole(User.Role role)

Set user role.

Parameters
role

The User.Role instance.