Package io.rong.imlib.model
Class UserProfile
-
- All Implemented Interfaces:
public class UserProfileUser Profile Entity Class
- Since:
5.10.0
-
-
Field Summary
Fields Modifier and Type Field Description public final static Creator<UserProfile>CREATORpublic StringuserIdpublic Stringnamepublic StringportraitUripublic StringuniqueIdpublic Stringemailpublic Stringbirthdaypublic intgenderpublic Stringlocationpublic introlepublic intlevelpublic HashMap<String, String>userProfilepublic HashMap<String, String>userExtProfile
-
Constructor Summary
Constructors Constructor Description UserProfile()UserProfile(Parcel in)
-
Method Summary
Modifier and Type Method Description StringgetUserId()Retrieves the user ID. voidsetUserId(String userId)Sets the user ID. StringgetName()Get nickname voidsetName(String name)Set nickname StringgetPortraitUri()Get avatar URL voidsetPortraitUri(String portraitUri)Set avatar URL StringgetUniqueId()Get the user application number voidsetUniqueId(String uniqueId)Set the user application ID StringgetEmail()Get Email voidsetEmail(String email)Set Email StringgetBirthday()Get birthday voidsetBirthday(String birthday)Set birthday intgetGender()Get gender voidsetGender(int gender)Set gender StringgetLocation()Get the location voidsetLocation(String location)Set location intgetRole()Get role voidsetRole(int role)Set role intgetLevel()Get level voidsetLevel(int level)Set Level HashMap<String, String>getUserProfile()HashMap<String, String>getUserExtProfile()Retrieves user extended information voidsetUserExtProfile(HashMap<String, String> userExtProfile)Set user extended information intdescribeContents()voidwriteToParcel(Parcel dest, int flags)StringtoString()-
-
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()
-
-
-
-