Package io.rong.imlib.model
Class UserInfo
-
- All Implemented Interfaces:
public class UserInfo
User information entity class, used to contain and store user information.
-
-
Field Summary
Fields Modifier and Type Field Description public final static Creator<UserInfo>
CREATOR
public String
name
public String
alias
public Uri
portraitUri
public String
extra
-
Method Summary
Modifier and Type Method Description String
getName()
Retrieves the user's name (nickname). void
setName(String name)
Sets the name (nickname). String
getAlias()
Get remark void
setAlias(String alias)
Set alias Uri
getPortraitUri()
Fetches the user's avatar. void
setPortraitUri(Uri uri)
Sets the user's avatar. String
getExtra()
Retrieves additional information. void
setExtra(String extra)
Sets additional information. String
getUserId()
Retrieves the user ID. void
setUserId(String userId)
Sets the user ID. int
describeContents()
void
writeToParcel(Parcel dest, int flags)
-
-
Method Detail
-
getName
String getName()
Retrieves the user's name (nickname).
- Returns:
The name (nickname).
-
setName
void setName(String name)
Sets the name (nickname).
- Parameters:
name
- The name (nickname).
-
getAlias
String getAlias()
Get remark
-
setAlias
void setAlias(String alias)
Set alias
-
getPortraitUri
Uri getPortraitUri()
Fetches the user's avatar.
- Returns:
The URL of the user's avatar.
-
setPortraitUri
void setPortraitUri(Uri uri)
Sets the user's avatar.
- Parameters:
uri
- The URI of the user's avatar.
-
getExtra
String getExtra()
Retrieves additional information.
- Returns:
Additional information.
-
setExtra
void setExtra(String extra)
Sets additional information.
- Parameters:
extra
- Additional information.
-
getUserId
String getUserId()
Retrieves the user ID.
- Returns:
The user ID.
-
setUserId
@Deprecated() void setUserId(String userId)
Sets the user ID. Use UserInfo to construct the object. The ID cannot be changed after the object is created.
- Parameters:
userId
- The user ID.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-