Session Screen View Model

The SessionScreenViewModel class is the support class used to execute the requests related to the SessionScreen

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxProfileViewModel
EquinoxViewModel
ViewModel
FetcherManagerWrapper

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

SessionScreenSection -> session sections available

Properties

Link copied to clipboard
val paginationState: <Error class: unknown class>

paginationState -> the state used to manage the pagination for the loadMembers method

Link copied to clipboard

sessionScreenSection -> the container state to display the specific session section

Link copied to clipboard

viewerEmail -> the value of the email of the viewer

Link copied to clipboard

viewerEmailError -> whether the viewerEmail field is not valid

Link copied to clipboard

viewerName -> the value of the name of the viewer

Link copied to clipboard

viewerNameError -> whether the viewerName field is not valid

Link copied to clipboard

viewerSurname -> the value of the surname of the viewer

Link copied to clipboard

viewerSurnameError -> whether the viewerSurname field is not valid

Functions

Link copied to clipboard
fun addViewer(onSuccess: () -> Unit)

Method to add a new com.tecknobit.ametistacore.models.AmetistaUser.Role.VIEWER in the system

Link copied to clipboard
fun logout(onLogout: () -> Unit)

Method to logout from the current session

Link copied to clipboard
fun removeMember(member: <Error class: unknown class>)

Method to remove a member from the system