CreateProjectScreenViewModel

The CreateProjectScreenViewModel provides the methods for the creation or the editing of a com.tecknobit.pandoro.ui.screens.projects.data.Project item

Author

N7ghtm4r3 - Tecknobit

Parameters

projectId

The identifier of the project to edit

See also

EquinoxViewModel

Constructors

Link copied to clipboard
constructor(projectId: String?)

Properties

Link copied to clipboard

authoredGroups -> the list of the groups owned by the com.tecknobit.pandoro.localUser

Link copied to clipboard

candidateGroups -> the list of the candidates groups where share the project

Link copied to clipboard
val project: StateFlow<Project?>
Link copied to clipboard

projectDescription -> the value of the description of the project

Link copied to clipboard

projectDescriptionError -> whether the projectDescription field is not valid

Link copied to clipboard

projectGroups -> the list of the current groups where the project is shared

Link copied to clipboard

projectIcon -> the value of the icon of the project

Link copied to clipboard
Link copied to clipboard

projectName -> the value of the name of the project

Link copied to clipboard

projectNameError -> whether the projectName field is not valid

Link copied to clipboard

projectRepository -> the value of the repository of the project

Link copied to clipboard

projectRepositoryError -> whether the projectRepository field is not valid

Link copied to clipboard

projectVersion -> the value of the version of the project

Link copied to clipboard

projectVersionError -> whether the projectVersion field is not valid

Functions

Link copied to clipboard

Method to manage a candidate project in the projectGroups and candidateGroups lists

Link copied to clipboard

Method to retrieve the current authored groups owned by the user

Link copied to clipboard
open override fun retrieveProject()

Method to retrieve the data of a Project if needed

Link copied to clipboard

Method to create or editing the project invoking the correct method to execute the request to handle that operation