Package io.rong.imlib.model

## Class ConversationUnreadInfo

- All Implemented Interfaces:

      public class ConversationUnreadInfo

  会话的未读信息类

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### 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()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### 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()` | 获取未读消息数。
    `void` | `setUnreadMessageCount(int unreadMessageCount)` | 设置未读消息数。
    `int` | `getMentionedCount()` | 获取本会话里自己被 @ 的未读消息数。
    `void` | `setMentionedCount(int count)` | 设置本会话里自己被 @ 的未读消息数。
    `int` | `getMentionedMeCount()` | 获取本会话里仅自己被 @ 的未读消息数。
    `void` | `setMentionedMeCount(int count)` | 设置本会话里仅自己被 @ 的未读消息数。
    `IRongCoreEnum.PushNotificationLevel` | `getPushNotificationLevel()` | 获取会话的免打扰状态。
    `void` | `setPushNotificationLevel(IRongCoreEnum.PushNotificationLevel pushNotificationLevel)` | 设置会话的免打扰状态。
    `void` | `writeToParcel(Parcel dest, int flags)` |
    `int` | `describeContents()` |
    `String` | `toString()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ConversationUnreadInfo

          ConversationUnreadInfo()

  - ### 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()