public class User extends AbstractModel
Constructor and Description |
---|
User() |
User(User source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getAccountType()
Get This field indicates the account type corresponding to the service subscriber ID.
Use this field and the account ID (UserId) together to determine a unique account. |
Long |
getAge()
Get This field indicates the age information of the service subscriber's account.
Values: Integers between **0** (default value, indicating that the age is unknown) and the number of (**custom maximum age**). |
String |
getDesc()
Get This field indicates the profile information of service subscribers.
|
Long |
getGender()
Get This field indicates the gender information of the service subscriber's account.
Values: **0** (default value, indicating the gender is unknown), **1** (male) and **2** (female). |
String |
getHeadUrl()
Get This field indicates the URL of the service subscriber's profile photos formatted with .png, .jpg, .jpeg, .bmp, .gif and .webp.
|
Long |
getLevel()
Get This field indicates the level information of the service subscriber's account.
Values: **0** (default value, indicating that the level is unknown), **1** (lower level), **2** (medium level) and **3** (higher level). |
String |
getNickname()
Get This field indicates the account nickname information of the service subscriber.
|
String |
getPhone()
Get This field indicates the mobile phone number information of the service subscriber's account.
|
String |
getReceiverId()
Get Receiver ID.
|
String |
getRoomId()
Get Room ID of the group chat.
|
Long |
getSendTime()
Get Generation time of the message, in ms.
|
String |
getUserId()
Get This field indicates the service subscriber ID.
|
void |
setAccountType(Long AccountType)
Set This field indicates the account type corresponding to the service subscriber ID.
Use this field and the account ID (UserId) together to determine a unique account. |
void |
setAge(Long Age)
Set This field indicates the age information of the service subscriber's account.
Values: Integers between **0** (default value, indicating that the age is unknown) and the number of (**custom maximum age**). |
void |
setDesc(String Desc)
Set This field indicates the profile information of service subscribers.
|
void |
setGender(Long Gender)
Set This field indicates the gender information of the service subscriber's account.
Values: **0** (default value, indicating the gender is unknown), **1** (male) and **2** (female). |
void |
setHeadUrl(String HeadUrl)
Set This field indicates the URL of the service subscriber's profile photos formatted with .png, .jpg, .jpeg, .bmp, .gif and .webp.
|
void |
setLevel(Long Level)
Set This field indicates the level information of the service subscriber's account.
Values: **0** (default value, indicating that the level is unknown), **1** (lower level), **2** (medium level) and **3** (higher level). |
void |
setNickname(String Nickname)
Set This field indicates the account nickname information of the service subscriber.
|
void |
setPhone(String Phone)
Set This field indicates the mobile phone number information of the service subscriber's account.
|
void |
setReceiverId(String ReceiverId)
Set Receiver ID.
|
void |
setRoomId(String RoomId)
Set Room ID of the group chat.
|
void |
setSendTime(Long SendTime)
Set Generation time of the message, in ms.
|
void |
setUserId(String UserId)
Set This field indicates the service subscriber ID.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public User()
public User(User source)
public String getUserId()
public void setUserId(String UserId)
UserId
- This field indicates the service subscriber ID. This ID can be used to optimize the moderation result judgment based on the account's violation records, which is helpful for auxiliary judgment when there is a risk of suspected violations.public String getNickname()
public void setNickname(String Nickname)
Nickname
- This field indicates the account nickname information of the service subscriber.public Long getAccountType()
public void setAccountType(Long AccountType)
AccountType
- This field indicates the account type corresponding to the service subscriber ID.public Long getGender()
public void setGender(Long Gender)
Gender
- This field indicates the gender information of the service subscriber's account.public Long getAge()
public void setAge(Long Age)
Age
- This field indicates the age information of the service subscriber's account.public Long getLevel()
public void setLevel(Long Level)
Level
- This field indicates the level information of the service subscriber's account.public String getPhone()
public void setPhone(String Phone)
Phone
- This field indicates the mobile phone number information of the service subscriber's account. The mobile phone numbers in various regions of the world can be recorded.public String getHeadUrl()
public void setHeadUrl(String HeadUrl)
HeadUrl
- This field indicates the URL of the service subscriber's profile photos formatted with .png, .jpg, .jpeg, .bmp, .gif and .webp.
Note: Up to 5 MB is supported, and the minimum resolution is 256 x 256. When it takes more than 3 seconds to download, the "download timeout" is returned.public String getDesc()
public void setDesc(String Desc)
Desc
- This field indicates the profile information of service subscribers. It can contain up to 5,000 characters, including Chinese characters, letters and special symbols.public String getRoomId()
public void setRoomId(String RoomId)
RoomId
- Room ID of the group chat.public String getReceiverId()
public void setReceiverId(String ReceiverId)
ReceiverId
- Receiver ID.public Long getSendTime()
public void setSendTime(Long SendTime)
SendTime
- Generation time of the message, in ms.Copyright © 2023. All rights reserved.