Class GroupFollowsViewModel
-
- All Implemented Interfaces:
public class GroupFollowsViewModel extends BaseViewModel
ViewModel for group follows list.
- Since:
5.12.2
-
-
Field Summary
Fields Modifier and Type Field Description protected final GroupInfoHandlergroupInfoHandlerprotected final GroupMembersByUserIdsHandlergroupMembersByUserIdsHandlerprotected final GroupOperationsHandlergroupOperationsHandlerprotected final MutableLiveData<ErrorEvent<NCError>>errorEventLiveData
-
Constructor Summary
Constructors Constructor Description GroupFollowsViewModel(Bundle arguments)
-
Method Summary
Modifier and Type Method Description LiveData<List<ContactModel>>getAllGroupFollowsLiveData()voidremoveGroupFollows(List<String> userIds, OnDataChangeListener<Boolean> listener)Remove group follows. 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
-
getAllGroupFollowsLiveData
LiveData<List<ContactModel>> getAllGroupFollowsLiveData()
-
removeGroupFollows
void removeGroupFollows(List<String> userIds, OnDataChangeListener<Boolean> listener)
Remove group follows.
- Parameters:
userIds- user ID listlistener- data change listener
-
onCleared
void onCleared()
-
-
-
-