Class FriendListViewModel
-
- All Implemented Interfaces:
public class FriendListViewModel extends BaseViewModel
Friend list page ViewModel
- Since:
5.12.0
-
-
Field Summary
Fields Modifier and Type Field Description protected final MutableLiveData<ErrorEvent<NCError>>errorEventLiveData
-
Constructor Summary
Constructors Constructor Description FriendListViewModel(Bundle arguments)
-
Method Summary
Modifier and Type Method Description LiveData<List<ContactModel>>getAllContactsLiveData()LiveData<Map<String, UserOnlineStatus>>getOnlineStatusLiveData()voidgetAllFriends()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
-
getAllContactsLiveData
LiveData<List<ContactModel>> getAllContactsLiveData()
-
getOnlineStatusLiveData
LiveData<Map<String, UserOnlineStatus>> getOnlineStatusLiveData()
-
getAllFriends
void getAllFriends()
-
onCleared
void onCleared()
-
-
-
-