Hosts
Screen
View
Model
The HostsScreenViewModel class is the
support class used by the com.tecknobit.brownie.ui.screens.hosts.presenter.HostsScreen
screen
Author
N7ghtm4r3 - Tecknobit
See also
Properties
hostsState
the state used to handle the pagination
of the hosts
inputSearch
is the input inserted by the user to
filter the hosts result
requestsScope
the CoroutineScope
used to make the requests to the backend
sessionFlowState
the state used to manage the session
lifecycle in the screen
statusFilters
the list of the statuses used to filter
the hosts result
Functions
Method used to apply the selected statuses and refresh the current hostsState list
Method used to handle the status of the host such online or offline
Method used to reboot a host
Method used to retrieve the current hosts statuses and refresh the hostsState items
Method used to display an eventual occurred error
Method used to unregister a host from the session