Class GroupProfileViewModel
-
- All Implemented Interfaces:
public class GroupProfileViewModel extends BaseViewModel
群组资料页面ViewModel
- Since:
5.12.0
rongcloud
-
-
Field Summary
Fields Modifier and Type Field Description public final MutableLiveData<GroupMemberInfo>myMemberInfoLiveDatapublic final MutableLiveData<Boolean>isConversationTopLiveDatapublic final MutableLiveData<Conversation.ConversationNotificationStatus>conversationNotificationStatusLiveDataprotected final GroupInfoHandlergroupInfoHandlerprotected final GroupOperationsHandlergroupOperationsHandlerprotected final GroupMembersPagedHandlergroupMembersPagedHandlerprotected final ConversationStatusHandlerconversationStatusHandlerprotected final ConversationOperationsHandlerconversationOperationsHandlerprotected final MutableLiveData<ErrorEvent<IRongCoreEnum.CoreErrorCode>>errorEventLiveData
-
Constructor Summary
Constructors Constructor Description GroupProfileViewModel(Bundle arguments)
-
Method Summary
Modifier and Type Method Description MutableLiveData<GroupMemberInfo>getMyMemberInfoLiveData()MutableLiveData<Boolean>getIsConversationTopLiveData()MutableLiveData<Conversation.ConversationNotificationStatus>getConversationNotificationStatusLiveData()LiveData<GroupInfo>getGroupInfoLiveData()LiveData<List<GroupMemberInfo>>getGroupMemberInfosLiveData()voiddismissGroup(OnDataChangeListener<Boolean> listener)解散群组 voidquitGroup(OnDataChangeListener<Boolean> listener)退出群组 voidsetConversationNotificationStatus(Conversation.ConversationNotificationStatus conversationNotificationStatus, OnDataChangeListener<Conversation.ConversationNotificationStatus> listener)设置会话免打扰状态 voidsetConversationTopStatus(boolean isTop, OnDataChangeListener<Boolean> listener)设置会话置顶状态 voidonCleared()-
-
Method Detail
-
getMyMemberInfoLiveData
MutableLiveData<GroupMemberInfo> getMyMemberInfoLiveData()
-
getIsConversationTopLiveData
MutableLiveData<Boolean> getIsConversationTopLiveData()
- Since:
5.12.2
-
getConversationNotificationStatusLiveData
MutableLiveData<Conversation.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(Conversation.ConversationNotificationStatus conversationNotificationStatus, OnDataChangeListener<Conversation.ConversationNotificationStatus> listener)
设置会话免打扰状态
- Parameters:
conversationNotificationStatus- 会话免打扰状态listener- 数据变化监听器- Since:
5.12.2
-
setConversationTopStatus
void setConversationTopStatus(boolean isTop, OnDataChangeListener<Boolean> listener)
设置会话置顶状态
- Parameters:
isTop- 会话置顶状态listener- 数据变化监听器- Since:
5.12.2
-
onCleared
void onCleared()
-
-
-
-