Package io.rong.imkit.userinfo.model
Class ExtendedUserInfo
-
- All Implemented Interfaces:
-
android.os.Parcelable
public class ExtendedUserInfo extends UserInfo implements Parcelable功能描述: 扩展用户信息实体类,用来存储用户信息。
- Since:
5.10.5
rongcloud
-
-
Field Summary
Fields Modifier and Type Field Description public final UserProfileuserProfilepublic final FriendInfofriendInfopublic final static Parcelable.Creator<ExtendedUserInfo>CREATORpublic final static Parcelable.Creator<UserInfo>CREATORpublic Stringnamepublic Stringaliaspublic UriportraitUripublic Stringextrapublic UserTypeuserTypepublic final static intCONTENTS_FILE_DESCRIPTORpublic final static intPARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
Constructors Constructor Description ExtendedUserInfo(Parcel in)
-
Method Summary
Modifier and Type Method Description UserProfilegetUserProfile()获取 UserProfile 对象。 FriendInfogetFriendInfo()获取 FriendInfo 对象。 static ExtendedUserInfoobtain(@NonNull() UserInfo userInfo)创建 ExtendedUserInfo 对象。 static ExtendedUserInfoobtain(@NonNull() UserProfile userProfile)创建 ExtendedUserInfo 对象。 static ExtendedUserInfoobtain(@NonNull() FriendInfo friendInfo)创建 ExtendedUserInfo 对象。 UserProfiletoUserProfile()将 ExtendedUserInfo 转换为 UserProfile 对象。 FriendInfotoFriendInfo()将 ExtendedUserInfo 转换为 FriendInfo 对象。 intdescribeContents()voidwriteToParcel(Parcel dest, int flags)StringtoString()-
Methods inherited from class io.rong.imlib.model.UserInfo
getAlias, getExtra, getName, getPortraitUri, getUserId, getUserType, setAlias, setExtra, setName, setPortraitUri, setUserId, setUserType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getUserProfile
UserProfile getUserProfile()
获取 UserProfile 对象。
- Returns:
UserProfile 对象。
-
getFriendInfo
FriendInfo getFriendInfo()
获取 FriendInfo 对象。
- Returns:
FriendInfo 对象。
-
obtain
static ExtendedUserInfo obtain(@NonNull() UserInfo userInfo)
创建 ExtendedUserInfo 对象。
- Parameters:
userInfo- 用户信息。- Returns:
ExtendedUserInfo 对象。
-
obtain
static ExtendedUserInfo obtain(@NonNull() UserProfile userProfile)
创建 ExtendedUserInfo 对象。
- Parameters:
userProfile- 用户信息。- Returns:
ExtendedUserInfo 对象。
-
obtain
static ExtendedUserInfo obtain(@NonNull() FriendInfo friendInfo)
创建 ExtendedUserInfo 对象。
- Parameters:
friendInfo- 好友信息。- Returns:
ExtendedUserInfo 对象。
-
toUserProfile
UserProfile toUserProfile()
将 ExtendedUserInfo 转换为 UserProfile 对象。
- Returns:
转换后的 UserProfile 对象。
-
toFriendInfo
FriendInfo toFriendInfo()
将 ExtendedUserInfo 转换为 FriendInfo 对象。
- Returns:
转换后的 FriendInfo 对象。
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-