Create
Team
View
Model
The CreateTeamViewModel class is the support class used by CreateTeamScreen to communicate with the backend for the creation or the editing of a Team
Author
N7ghtm4r3 - Tecknobit
Parameters
: the host to launch the snackbar messages
See also
Properties
itemDedicatedList -> a dedicated list of the item, useful to manage for example links, collections or members list attached to the item
itemDescription -> the description of the item
itemDescriptionError -> whether the itemDescription field is not valid
Functions
Function to execute the request to fetch the potentials member for the team
Function to initializing the existingItem if exists, null otherwise
Function to decree if the counter value reached the threshold of the LAST_CAN_GOES_VALUE
Wrapper function to execute the request to create or edit an item
Function to suspend the current refreshRoutine to execute other requests to the backend, the isRefreshing instance will be set as false to allow the restart of the routine after executing the other requests