Package io.rong.imlib.model
Class ConversationUnreadInfo
-
- All Implemented Interfaces:
public class ConversationUnreadInfo会话的未读信息类
-
-
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()获取未读消息数。 voidsetUnreadMessageCount(int unreadMessageCount)设置未读消息数。 intgetMentionedCount()获取本会话里自己被 @ 的未读消息数。 voidsetMentionedCount(int count)设置本会话里自己被 @ 的未读消息数。 intgetMentionedMeCount()获取本会话里仅自己被 @ 的未读消息数。 voidsetMentionedMeCount(int count)设置本会话里仅自己被 @ 的未读消息数。 IRongCoreEnum.PushNotificationLevelgetPushNotificationLevel()获取会话的免打扰状态。 voidsetPushNotificationLevel(IRongCoreEnum.PushNotificationLevel pushNotificationLevel)设置会话的免打扰状态。 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()
获取未读消息数。
- Returns:
未读消息数。
-
setUnreadMessageCount
void setUnreadMessageCount(int unreadMessageCount)
设置未读消息数。
- Parameters:
unreadMessageCount- 未读消息数。
-
getMentionedCount
int getMentionedCount()
获取本会话里自己被 @ 的未读消息数。
- Returns:
被@的未读消息数量
-
setMentionedCount
void setMentionedCount(int count)
设置本会话里自己被 @ 的未读消息数。
- Parameters:
count- 未读消息数。
-
getMentionedMeCount
int getMentionedMeCount()
获取本会话里仅自己被 @ 的未读消息数。
- Returns:
被@的未读消息数量
-
setMentionedMeCount
void setMentionedMeCount(int count)
设置本会话里仅自己被 @ 的未读消息数。
- Parameters:
count- 未读消息数。
-
getPushNotificationLevel
IRongCoreEnum.PushNotificationLevel getPushNotificationLevel()
获取会话的免打扰状态。
- Returns:
会话的免打扰状态
-
setPushNotificationLevel
void setPushNotificationLevel(IRongCoreEnum.PushNotificationLevel pushNotificationLevel)
设置会话的免打扰状态。
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
describeContents
int describeContents()
-
toString
String toString()
-
-
-
-