Class GroupProfileViewModel
-
- All Implemented Interfaces:
public class GroupProfileViewModel extends BaseViewModel
ViewModel for group profile.
- Since:
5.12.0
-
-
Field Summary
Fields Modifier and Type Field Description public final MutableLiveData<GroupMemberInfo>myMemberInfoLiveDatapublic final MutableLiveData<Boolean>isConversationTopLiveDatapublic final MutableLiveData<ChannelNoDisturbLevel>conversationNotificationStatusLiveDataprotected final GroupInfoHandlergroupInfoHandlerprotected final GroupOperationsHandlergroupOperationsHandlerprotected final GroupMembersPagedHandlergroupMembersPagedHandlerprotected final ChannelStatusHandlerconversationStatusHandlerprotected final ChannelOperationsHandlerconversationOperationsHandlerprotected final MutableLiveData<ErrorEvent<NCError>>errorEventLiveData
-
Constructor Summary
Constructors Constructor Description GroupProfileViewModel(Bundle arguments)
-
Method Summary
Modifier and Type Method Description MutableLiveData<GroupMemberInfo>getMyMemberInfoLiveData()MutableLiveData<Boolean>getIsConversationTopLiveData()MutableLiveData<ChannelNoDisturbLevel>getConversationNotificationStatusLiveData()LiveData<GroupInfo>getGroupInfoLiveData()LiveData<List<GroupMemberInfo>>getGroupMemberInfosLiveData()voiddismissGroup(OnDataChangeListener<Boolean> listener)Dismiss the group. voidquitGroup(OnDataChangeListener<Boolean> listener)Quit the group. voidsetConversationNotificationStatus(ChannelNoDisturbLevel conversationNotificationStatus, OnDataChangeListener<ChannelNoDisturbLevel> listener)Set conversation do-not-disturb status. voidsetConversationTopStatus(boolean isTop, OnDataChangeListener<Boolean> listener)Set conversation pin-to-top status. voidonCleared()-
Methods inherited from class ai.nexconn.chatui.base.BaseViewModel
getArguments, getErrorEventLiveData, postErrorEvent -
Methods inherited from class androidx.lifecycle.ViewModel
addCloseable -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMyMemberInfoLiveData
MutableLiveData<GroupMemberInfo> getMyMemberInfoLiveData()
-
getIsConversationTopLiveData
MutableLiveData<Boolean> getIsConversationTopLiveData()
- Since:
5.12.2
-
getConversationNotificationStatusLiveData
MutableLiveData<ChannelNoDisturbLevel> getConversationNotificationStatusLiveData()
- Since:
5.12.2
-
getGroupInfoLiveData
LiveData<GroupInfo> getGroupInfoLiveData()
-
getGroupMemberInfosLiveData
LiveData<List<GroupMemberInfo>> getGroupMemberInfosLiveData()
-
dismissGroup
void dismissGroup(OnDataChangeListener<Boolean> listener)
Dismiss the group.
- Parameters:
listener- data change listener
-
quitGroup
void quitGroup(OnDataChangeListener<Boolean> listener)
Quit the group.
- Parameters:
listener- data change listener
-
setConversationNotificationStatus
void setConversationNotificationStatus(ChannelNoDisturbLevel conversationNotificationStatus, OnDataChangeListener<ChannelNoDisturbLevel> listener)
Set conversation do-not-disturb status.
- Parameters:
conversationNotificationStatus- conversation notification statuslistener- data change listener- Since:
5.12.2
-
setConversationTopStatus
void setConversationTopStatus(boolean isTop, OnDataChangeListener<Boolean> listener)
Set conversation pin-to-top status.
- Parameters:
isTop- whether to pin the conversationlistener- data change listener- Since:
5.12.2
-
onCleared
void onCleared()
-
-
-
-