Package io.rong.imlib.model
Class ConversationUnreadInfo
-
- All Implemented Interfaces:
public class ConversationUnreadInfo
Unread information class for conversations
-
-
Field Summary
Fields Modifier and Type Field Description public ConversationType
type
public String
targetId
public String
channelId
public int
unreadMessageCount
public int
mentionedCount
public int
mentionedMeCount
public IRongCoreEnum.PushNotificationLevel
pushNotificationLevel
public final static Creator<ConversationUnreadInfo>
CREATOR
-
Constructor Summary
Constructors Constructor Description ConversationUnreadInfo()
-
Method Summary
Modifier and Type Method Description ConversationType
getType()
void
setType(ConversationType type)
String
getTargetId()
void
setTargetId(String targetId)
String
getChannelId()
void
setChannelId(String channelId)
int
getUnreadMessageCount()
Retrieves the count of unread messages. void
setUnreadMessageCount(int unreadMessageCount)
Sets the unread message count. int
getMentionedCount()
Retrieves the count of unread mentions in the current conversation. void
setMentionedCount(int count)
Sets the count of unread @ messages in this conversation. int
getMentionedMeCount()
Retrieves the count of unread messages in this conversation where only you were mentioned. void
setMentionedMeCount(int count)
Sets the count of unread messages where only you are mentioned in this conversation. IRongCoreEnum.PushNotificationLevel
getPushNotificationLevel()
Gets the Do Not Disturb status of the conversation. void
setPushNotificationLevel(IRongCoreEnum.PushNotificationLevel pushNotificationLevel)
Set the Do Not Disturb status for a conversation. void
writeToParcel(Parcel dest, int flags)
int
describeContents()
String
toString()
-
-
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()
-
-
-
-