Work On Project View Model

class WorkOnProjectViewModel(snackbarHostState: SnackbarHostState)

The WorkOnProjectViewModel class is the support class used by the WorkOnProject to execute the requests to create or edit a Project

Author

N7ghtm4r3 - Tecknobit

Parameters

snackbarHostState

: the host to launch the snackbar messages

See also

FetcherManagerWrapper
EquinoxViewModel

Constructors

Link copied to clipboard
constructor(snackbarHostState: SnackbarHostState)

Properties

Link copied to clipboard
lateinit var logoPic: MutableState<String>

logoPic -> the logo picture of the project

Link copied to clipboard

logoPicBordersColor -> the color used for the borders of the logoPic to warn about an error during the selection

Link copied to clipboard

membersAdded -> the list of identifiers of the added members

Link copied to clipboard
val potentialMembers: StateFlow<List<<Error class: unknown class>>>
Link copied to clipboard

projectTitle -> the state used to contain the title of the project

Link copied to clipboard

projectTitleError -> whether the projectTitle field is not valid

Functions

Link copied to clipboard

Function to refresh the _potentialMembers list

Link copied to clipboard
fun workOnProject(project: <Error class: unknown class>?, onSuccess: () -> Unit)

Wrapper function to execute the add or the edit request