Package io.rong.imlib.model
Class UserProfile
-
- All Implemented Interfaces:
public class UserProfile
User Profile Entity Class
- Since:
5.10.0
-
-
Field Summary
Fields Modifier and Type Field Description public final static Creator<UserProfile>
CREATOR
public String
userId
public String
name
public String
portraitUri
public String
uniqueId
public String
email
public String
birthday
public int
gender
public String
location
public int
role
public int
level
public HashMap<String, String>
userProfile
public HashMap<String, String>
userExtProfile
-
Constructor Summary
Constructors Constructor Description UserProfile()
UserProfile(Parcel in)
-
Method Summary
Modifier and Type Method Description String
getUserId()
Retrieves the user ID. void
setUserId(String userId)
Sets the user ID. String
getName()
Get nickname void
setName(String name)
Set nickname String
getPortraitUri()
Get avatar URL void
setPortraitUri(String portraitUri)
Set avatar URL String
getUniqueId()
Get the user application number void
setUniqueId(String uniqueId)
Set the user application ID String
getEmail()
Get Email void
setEmail(String email)
Set Email String
getBirthday()
Get birthday void
setBirthday(String birthday)
Set birthday int
getGender()
Get gender void
setGender(int gender)
Set gender String
getLocation()
Get the location void
setLocation(String location)
Set location int
getRole()
Get role void
setRole(int role)
Set role int
getLevel()
Get level void
setLevel(int level)
Set Level HashMap<String, String>
getUserProfile()
HashMap<String, String>
getUserExtProfile()
Retrieves user extended information void
setUserExtProfile(HashMap<String, String> userExtProfile)
Set user extended information int
describeContents()
void
writeToParcel(Parcel dest, int flags)
String
toString()
-
-
Method Detail
-
getUserId
String getUserId()
Retrieves the user ID.
- Returns:
The user ID.
-
setUserId
void setUserId(String userId)
Sets the user ID.
Note: This is an internal method. Do not set the user ID externally.
- Parameters:
userId
- The user ID
-
getName
String getName()
Get nickname
- Returns:
nickname
-
setName
void setName(String name)
Set nickname
- Parameters:
name
- Nickname
-
getPortraitUri
String getPortraitUri()
Get avatar URL
- Returns:
The avatar URL
-
setPortraitUri
void setPortraitUri(String portraitUri)
Set avatar URL
- Parameters:
portraitUri
- The avatar URL
-
getUniqueId
String getUniqueId()
Get the user application number
- Returns:
The user application number
-
setUniqueId
void setUniqueId(String uniqueId)
Set the user application ID
- Parameters:
uniqueId
- The user application ID
-
getEmail
String getEmail()
Get Email
- Returns:
Email
-
setEmail
void setEmail(String email)
Set Email
- Parameters:
email
- Email
-
getBirthday
String getBirthday()
Get birthday
- Returns:
Birthday
-
setBirthday
void setBirthday(String birthday)
Set birthday
- Parameters:
birthday
- Birthday
-
getGender
int getGender()
Get gender
- Returns:
gender
-
setGender
void setGender(int gender)
Set gender
- Parameters:
gender
- Specifies the gender
-
getLocation
String getLocation()
Get the location
- Returns:
The location
-
setLocation
void setLocation(String location)
Set location
- Parameters:
location
- The location to set
-
getRole
int getRole()
Get role
- Returns:
Role
-
setRole
void setRole(int role)
Set role
- Parameters:
role
- The role
-
getLevel
int getLevel()
Get level
- Returns:
The level
-
setLevel
void setLevel(int level)
Set Level
- Parameters:
level
- Specifies the level
-
getUserProfile
HashMap<String, String> getUserProfile()
-
getUserExtProfile
HashMap<String, String> getUserExtProfile()
Retrieves user extended information
- Returns:
User extended information
-
setUserExtProfile
void setUserExtProfile(HashMap<String, String> userExtProfile)
Set user extended information
- Parameters:
userExtProfile
- User extended information
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
toString
String toString()
-
-
-
-