Package ai.nexconn.chat.user.model
Class UserProfile
-
- All Implemented Interfaces:
public final class UserProfileUser profile.
Used as both the read result (from ai.nexconn.chat.user.UserModule.getMyUserProfile / ai.nexconn.chat.user.UserModule.getUserProfiles) and the update input (for ai.nexconn.chat.user.UserModule.updateMyUserProfile).
When used for updates, only non-null fields are sent to the server;
nullfields are left unchanged.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringuserIdprivate final Stringnameprivate final StringportraitUriprivate final StringuniqueIdprivate final Stringemailprivate final Stringbirthdayprivate final Integergenderprivate final Stringlocationprivate final Integerroleprivate final Integerlevelprivate final Map<String, String>extProfile
-
Constructor Summary
Constructors Constructor Description UserProfile(String userId, String name, String portraitUri, String uniqueId, String email, String birthday, Integer gender, String location, Integer role, Integer level, Map<String, String> extProfile)
-
Method Summary
Modifier and Type Method Description final StringgetUserId()final StringgetName()final StringgetPortraitUri()final StringgetUniqueId()final StringgetEmail()final StringgetBirthday()final IntegergetGender()final StringgetLocation()final IntegergetRole()final IntegergetLevel()final Map<String, String>getExtProfile()-
-
Constructor Detail
-
UserProfile
UserProfile(String userId, String name, String portraitUri, String uniqueId, String email, String birthday, Integer gender, String location, Integer role, Integer level, Map<String, String> extProfile)
- Parameters:
userId- user IDname- Nickname, Max length 32 charactersportraitUri- Avatar URL, Max length 128 charactersuniqueId- User app ID, Supports Size letters, digit, Max length 32 charactersemail- Email, Max length 128 charactersbirthday- Birthday, Max length 32 charactersgender- Gender (0: unknown, 1: male, 2: female)location- Location, Max length 32 charactersrole- Role, Supports 0~100 Within rangelevel- Level, Supports 0~100 Within rangeextProfile- User extended info
-
-
Method Detail
-
getUserId
final String getUserId()
-
getName
final String getName()
-
getPortraitUri
final String getPortraitUri()
-
getUniqueId
final String getUniqueId()
-
getEmail
final String getEmail()
-
getBirthday
final String getBirthday()
-
getGender
final Integer getGender()
-
getLocation
final String getLocation()
-
getRole
final Integer getRole()
-
getLevel
final Integer getLevel()
-
getExtProfile
final Map<String, String> getExtProfile()
-
-
-
-