Class ChannelListHeaderViewModel
-
- All Implemented Interfaces:
public final class ChannelListHeaderViewModel extends ViewModel
ViewModel class for ChannelListHeaderView. Responsible for updating current user information. Can be bound to the view using ChannelListHeaderViewModel.bindView function.
-
-
Field Summary
Fields Modifier and Type Field Description private final LiveData<User>currentUserprivate final LiveData<ConnectionState>connectionState
-
Constructor Summary
Constructors Constructor Description ChannelListHeaderViewModel(ClientState clientState)ChannelListHeaderViewModel()
-
Method Summary
Modifier and Type Method Description final LiveData<User>getCurrentUser()The user who is currently logged in. final LiveData<ConnectionState>getConnectionState()The state of the connection for the user currently logged in. -
-
Method Detail
-
getCurrentUser
final LiveData<User> getCurrentUser()
The user who is currently logged in.
-
getConnectionState
final LiveData<ConnectionState> getConnectionState()
The state of the connection for the user currently logged in.
-
-
-
-