Conversation

public class Conversation

The entity of a conversation, used to contain and store the client's conversation information, corresponding to the conversation in the conversation list.

Author

rongcloud

Constructors

Link copied to clipboard
public void Conversation()
Default constructor.
public void Conversation(Parcel in)

Types

Link copied to clipboard
Conversation reminder status.
Link copied to clipboard
public enum ConversationType
Conversation type enumeration.
Link copied to clipboard
public enum PublicServiceType
Enumeration of public service types.

Properties

Link copied to clipboard
public String channelId
Link copied to clipboard
Link copied to clipboard
public String conversationTitle
Link copied to clipboard
Link copied to clipboard
public final static Creator<Conversation> CREATOR
Link copied to clipboard
public String draft
Link copied to clipboard
Link copied to clipboard
public boolean isTop
Link copied to clipboard
public boolean isTopForTag
Link copied to clipboard
public int mentionedCount
Link copied to clipboard
public long operationTime
Link copied to clipboard
public String portraitUrl
Link copied to clipboard
Link copied to clipboard
public String senderUserName
Link copied to clipboard
public String targetId
Link copied to clipboard
public int unreadMessageCount

Functions

Link copied to clipboard
public int describeContents()
Link copied to clipboard
public String getChannelId()
The business identifier of the conversation to which the message belongs.
Link copied to clipboard
Retrieves the channel type of the ultra group conversation.
Link copied to clipboard
public String getConversationTitle()
Get the conversation title.
Link copied to clipboard
Retrieves the conversation type.
Link copied to clipboard
public String getDraft()
Retrieves the draft present in the conversation.
Link copied to clipboard
Gets the timestamp of the first unread message in the conversation (Unix timestamp in milliseconds).
Link copied to clipboard
public Map<String, String> getLatestExpansion()
Retrieves the list of expansion information for the last message.
Link copied to clipboard
public MessageContent getLatestMessage()
Retrieves the content of the last message in the conversation.
Link copied to clipboard
public MessageConfig getLatestMessageConfig()
Retrieves the message configuration.
Link copied to clipboard
public MessageDirection getLatestMessageDirection()
Retrieves the message direction.
Link copied to clipboard
public String getLatestMessageExtra()
Retrieve the additional information of the message.
Link copied to clipboard
public int getLatestMessageId()
Retrieves the ID of the last message in this conversation.
Link copied to clipboard
public ReadReceiptInfo getLatestMessageReadReceiptInfo()
Retrieves the read receipt status of the last message.
Link copied to clipboard
public String getLatestMessageUId()
Retrieves the unique message ID from the server (globally unique within the same AppKey).
Link copied to clipboard
@Deprecated()
public int getMentionedCount()
Retrieves the count of unread messages in this conversation where you were mentioned.
Link copied to clipboard
public Message getMessage()
Retrieves the latest message of the conversation
Link copied to clipboard
Retrieves the message notification status.
Link copied to clipboard
public String getObjectName()
Gets the name of the message object.
Link copied to clipboard
public long getOperationTime()
Gets the operation timestamp (Unix timestamp in milliseconds) for this conversation, used as the timestamp parameter when paginating through the conversation list.
Link copied to clipboard
public String getPortraitUrl()
Get the conversation avatar URL
Link copied to clipboard
Get the Do Not Disturb notification level
Link copied to clipboard
public ReceivedStatus getReceivedStatus()
Retrieves the receipt status of the last message in the conversation.
Link copied to clipboard
public long getReceivedTime()
Retrieves the receive time of the last message in the conversation (Unix timestamp in milliseconds).
Link copied to clipboard
public String getSenderUserId()
Retrieves the user ID of the message sender.
Link copied to clipboard
public String getSenderUserName()
Retrieves the name of the user who sent the message.
Link copied to clipboard
public SentStatus getSentStatus()
Retrieves the send status of the last message in the conversation.
Link copied to clipboard
public long getSentTime()
Get the sending time of the last message in the conversation (Unix timestamp, milliseconds) The sending time is the server time when the message arrives at the server from the sending client.
Link copied to clipboard
public String getTargetId()
Retrieves the conversation ID.
Link copied to clipboard
Get the count of unread @ mentions in this conversation.
Link copied to clipboard
Retrieves the count of unread messages in this conversation where only you are mentioned.
Link copied to clipboard
public int getUnreadMessageCount()
Get the count of unread messages.
Link copied to clipboard
public boolean isLatestCanIncludeExpansion()
Indicates whether the message can contain extended information.
Link copied to clipboard
public boolean isTop()
Retrieves the pinned status.
Link copied to clipboard
public boolean isTopForTag()
Retrieves the pinned status of the current conversation under this tag.
Link copied to clipboard
public static Conversation obtain(Conversation.ConversationType type, String id, String title)
Constructor.
Link copied to clipboard
public void setChannelId(String channelId)
Sets the business identifier of the conversation to which the message belongs.
Link copied to clipboard
Sets the channel type for the ultra group conversation
Link copied to clipboard
public void setConversationTitle(String conversationTitle)
Sets the conversation title.
Link copied to clipboard
public void setConversationType(Conversation.ConversationType conversationType)
Sets the conversation type.
Link copied to clipboard
public void setDraft(String draft)
Sets the draft in the conversation.
Link copied to clipboard
public void setFirstUnreadMsgSendTime(long firstUnreadMsgSendTime)
Sets the timestamp of the first unread message in the conversation (Unix timestamp, in milliseconds).
Link copied to clipboard
public void setLatestCanIncludeExpansion(boolean latestCanIncludeExpansion)
Sets whether the message can include extended information
Link copied to clipboard
public void setLatestExpansion(Map<String, String> latestExpansion)
Sets the latest message expansion information list.
Link copied to clipboard
public void setLatestMessage(MessageContent latestMessageContent)
Sets the content of the last message in the conversation.
Link copied to clipboard
public void setLatestMessageConfig(MessageConfig latestMessageConfig)
Set message configuration
Link copied to clipboard
public void setLatestMessageDirection(MessageDirection latestMessageDirection)
Sets the message direction.
Link copied to clipboard
public void setLatestMessageExtra(String latestMessageExtra)
Sets the additional information for the message.
Link copied to clipboard
public void setLatestMessageId(int latestMessageId)
Sets the ID of the last message in this conversation.
Link copied to clipboard
public void setLatestMessageReadReceiptInfo(ReadReceiptInfo latestMessageReadReceiptInfo)
Sets the read receipt status of the last message
Link copied to clipboard
public void setLatestMessageUId(String latestMessageUId)
Sets the server message unique ID (globally unique within the same AppKey).
Link copied to clipboard
public void setMentionedCount(int count)
Sets the count of unread @ messages in this conversation.
Link copied to clipboard
public void setMentionedMeCount(int count)
Sets the count of unread @ messages in this conversation that are only for the current user.
Link copied to clipboard
public void setMessage(Message latestMessage)
The LatestMessage of the conversation
Link copied to clipboard
Sets the status for retrieving notification messages.
Link copied to clipboard
public void setObjectName(String objectName)
Sets the name of the message object.
Link copied to clipboard
public void setOperationTime(long operationTime)
Sets the operation time for this conversation (Unix timestamp in milliseconds).
Link copied to clipboard
public void setPortraitUrl(String portraitUrl)
Sets the conversation avatar URL
Link copied to clipboard
public void setPushNotificationLevel(int pushNotificationLevel)
Sets the Do Not Disturb notification level
Link copied to clipboard
public void setReceivedStatus(ReceivedStatus receivedStatus)
Sets the received status of the last message in the conversation.
Link copied to clipboard
public void setReceivedTime(long receivedTime)
Sets the received time of the last message in the conversation (Unix timestamp in milliseconds).
Link copied to clipboard
public void setSenderUserId(String senderUserId)
Sets the user ID of the message sender.
Link copied to clipboard
public void setSenderUserName(String senderUserName)
Sets the username of the message sender.
Link copied to clipboard
public void setSentStatus(SentStatus sentStatus)
Sets the sending status of the last message in the conversation.
Link copied to clipboard
public void setSentTime(long sentTime)
Sets the sent time of the last message in the conversation (Unix timestamp in milliseconds).
Link copied to clipboard
public void setTargetId(String targetId)
Sets the conversation ID.
Link copied to clipboard
public void setTop(boolean isTop)
Sets the pinned status.
Link copied to clipboard
public void setTopForTag(boolean isTopForTag)
Sets the pinned status of the current conversation under this tag.
Link copied to clipboard
public void setUnreadMessageCount(int unreadMessageCount)
Sets the unread message count.
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)