Package io.rong.imkit.usermanage.group.profile

## Class GroupProfileViewModel

- All Implemented Interfaces:

      public class GroupProfileViewModel

  群组资料页面ViewModel

  Since:

    5.12.0

  Author:

    rongcloud

- - ### Nested Class Summary

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

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final MutableLiveData<GroupMemberInfo>` | `myMemberInfoLiveData` |
    `public final MutableLiveData<Boolean>` | `isConversationTopLiveData` |
    `public final MutableLiveData<ConversationNotificationStatus>` | `conversationNotificationStatusLiveData` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `GroupProfileViewModel(Bundle arguments)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `MutableLiveData<GroupMemberInfo>` | `getMyMemberInfoLiveData()` |
    `MutableLiveData<Boolean>` | `getIsConversationTopLiveData()` |
    `MutableLiveData<ConversationNotificationStatus>` | `getConversationNotificationStatusLiveData()` |
    `LiveData<GroupInfo>` | `getGroupInfoLiveData()` |
    `LiveData<List<GroupMemberInfo>>` | `getGroupMemberInfosLiveData()` |
    `void` | `)>dismissGroup(OnDataChangeListener<Boolean> listener)` | 解散群组
    `void` | `)>quitGroup(OnDataChangeListener<Boolean> listener)` | 退出群组
    `void` | `)>setConversationNotificationStatus(ConversationNotificationStatus conversationNotificationStatus, OnDataChangeListener<ConversationNotificationStatus> listener)` | 设置会话免打扰状态
    `void` | `)>setConversationTopStatus(boolean isTop, OnDataChangeListener<Boolean> listener)` | 设置会话置顶状态

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

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

- - ### Constructor Detail

    - #### GroupProfileViewModel

          GroupProfileViewModel(Bundle arguments)

  - ### Method Detail

    - #### getMyMemberInfoLiveData

           MutableLiveData<GroupMemberInfo> getMyMemberInfoLiveData()

    - #### getIsConversationTopLiveData

           MutableLiveData<Boolean> getIsConversationTopLiveData()

      Since:

        5.12.2

    - #### getConversationNotificationStatusLiveData

           MutableLiveData<ConversationNotificationStatus> getConversationNotificationStatusLiveData()

      Since:

        5.12.2

    - #### getGroupInfoLiveData

           LiveData<GroupInfo> getGroupInfoLiveData()

    - #### getGroupMemberInfosLiveData

           LiveData<List<GroupMemberInfo>> getGroupMemberInfosLiveData()

    - #### dismissGroup

           void )>dismissGroup(OnDataChangeListener<Boolean> listener)

      解散群组

      Parameters:
        `listener` - 数据变化监听器

    - #### quitGroup

           void )>quitGroup(OnDataChangeListener<Boolean> listener)

      退出群组

      Parameters:
        `listener` - 数据变化监听器

    - #### setConversationNotificationStatus

           void )>setConversationNotificationStatus(ConversationNotificationStatus conversationNotificationStatus, OnDataChangeListener<ConversationNotificationStatus> listener)

      设置会话免打扰状态

      Parameters:
        `conversationNotificationStatus` - 会话免打扰状态
        `listener` - 数据变化监听器
      Since:

        5.12.2

    - #### setConversationTopStatus

           void )>setConversationTopStatus(boolean isTop, OnDataChangeListener<Boolean> listener)

      设置会话置顶状态

      Parameters:
        `isTop` - 会话置顶状态
        `listener` - 数据变化监听器
      Since:

        5.12.2