Package io.rong.imlib.model
Class ConversationUnreadInfo
-
- All Implemented Interfaces:
public class ConversationUnreadInfoUnread information class for conversations
-
-
Field Summary
Fields Modifier and Type Field Description public ConversationTypetypepublic StringtargetIdpublic StringchannelIdpublic intunreadMessageCountpublic intmentionedCountpublic intmentionedMeCountpublic IRongCoreEnum.PushNotificationLevelpushNotificationLevelpublic final static Creator<ConversationUnreadInfo>CREATOR
-
Constructor Summary
Constructors Constructor Description ConversationUnreadInfo()
-
Method Summary
Modifier and Type Method Description ConversationTypegetType()voidsetType(ConversationType type)StringgetTargetId()voidsetTargetId(String targetId)StringgetChannelId()voidsetChannelId(String channelId)intgetUnreadMessageCount()Retrieves the count of unread messages. voidsetUnreadMessageCount(int unreadMessageCount)Sets the unread message count. intgetMentionedCount()Retrieves the count of unread mentions in the current conversation. voidsetMentionedCount(int count)Sets the count of unread @ messages in this conversation. intgetMentionedMeCount()Retrieves the count of unread messages in this conversation where only you were mentioned. voidsetMentionedMeCount(int count)Sets the count of unread messages where only you are mentioned in this conversation. IRongCoreEnum.PushNotificationLevelgetPushNotificationLevel()Gets the Do Not Disturb status of the conversation. voidsetPushNotificationLevel(IRongCoreEnum.PushNotificationLevel pushNotificationLevel)Set the Do Not Disturb status for a conversation. voidwriteToParcel(Parcel dest, int flags)intdescribeContents()StringtoString()-
-
Method Detail
-
getType
ConversationType getType()
-
setType
void setType(ConversationType type)
-
getTargetId
String getTargetId()
-
setTargetId
void setTargetId(String targetId)
-
getChannelId
String getChannelId()
-
setChannelId
void setChannelId(String channelId)
-
getUnreadMessageCount
int getUnreadMessageCount()
Retrieves the count of unread messages.
- Returns:
The count of unread messages.
-
setUnreadMessageCount
void setUnreadMessageCount(int unreadMessageCount)
Sets the unread message count.
- Parameters:
unreadMessageCount- Indicates the number of unread messages.
-
getMentionedCount
int getMentionedCount()
Retrieves the count of unread mentions in the current conversation.
- Returns:
The number of unread mentions
-
setMentionedCount
void setMentionedCount(int count)
Sets the count of unread @ messages in this conversation.
- Parameters:
count- The count of unread messages.
-
getMentionedMeCount
int getMentionedMeCount()
Retrieves the count of unread messages in this conversation where only you were mentioned.
- Returns:
The number of unread mentions
-
setMentionedMeCount
void setMentionedMeCount(int count)
Sets the count of unread messages where only you are mentioned in this conversation.
- Parameters:
count- The number of unread messages.
-
getPushNotificationLevel
IRongCoreEnum.PushNotificationLevel getPushNotificationLevel()
Gets the Do Not Disturb status of the conversation.
- Returns:
The Do Not Disturb status of the conversation
-
setPushNotificationLevel
void setPushNotificationLevel(IRongCoreEnum.PushNotificationLevel pushNotificationLevel)
Set the Do Not Disturb status for a conversation.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
toString
String toString()
-
-
-
-