Class UserProfileViewModel
-
- All Implemented Interfaces:
public class UserProfileViewModel extends BaseViewModel
User profile page ViewModel
- Since:
5.12.0
-
-
Field Summary
Fields Modifier and Type Field Description public final MutableLiveData<GroupMemberInfo>myGroupMemberInfoLiveDatapublic final MutableLiveData<UserOnlineStatus>onlineStatusLiveDataprotected final MutableLiveData<ErrorEvent<NCError>>errorEventLiveData
-
Constructor Summary
Constructors Constructor Description UserProfileViewModel(Bundle arguments)
-
Method Summary
Modifier and Type Method Description MutableLiveData<GroupMemberInfo>getMyGroupMemberInfoLiveData()MutableLiveData<UserOnlineStatus>getOnlineStatusLiveData()MutableLiveData<UiUserDetail>getUserProfilesLiveData()MutableLiveData<ContactModel>getContactModelLiveData()UiUserDetailgetUiUserDetail()voiddeleteFriend(OnDataChangeListener<Boolean> callback)voidgetUserProfile()voidapplyFriend(String remark, OnDataChangeListener<Integer> callback)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
-
getMyGroupMemberInfoLiveData
MutableLiveData<GroupMemberInfo> getMyGroupMemberInfoLiveData()
-
getOnlineStatusLiveData
MutableLiveData<UserOnlineStatus> getOnlineStatusLiveData()
-
getUserProfilesLiveData
MutableLiveData<UiUserDetail> getUserProfilesLiveData()
-
getContactModelLiveData
MutableLiveData<ContactModel> getContactModelLiveData()
-
getUiUserDetail
UiUserDetail getUiUserDetail()
-
deleteFriend
void deleteFriend(OnDataChangeListener<Boolean> callback)
-
getUserProfile
void getUserProfile()
-
applyFriend
void applyFriend(String remark, OnDataChangeListener<Integer> callback)
-
onCleared
void onCleared()
-
-
-
-