ProjectScreenViewModel

The ProjectScreenViewModel provides the methods to display and operate on a com.tecknobit.pandoro.ui.screens.projects.data.Project item

Author

N7ghtm4r3 - Tecknobit

Parameters

projectId

The identifier of the group to display

See also

Constructors

Link copied to clipboard
constructor(projectId: String)

Properties

Link copied to clipboard
val project: StateFlow<Project?>
Link copied to clipboard
lateinit var updateStatusesFilters: SnapshotStateList<<Error class: unknown class>>

updateStatusesFilters -> the statuses of The update to use as filters

Functions

Link copied to clipboard

Method to check whether the updateStatusesFilters are set

Link copied to clipboard

Method to arrange The updates list applying the filters

Link copied to clipboard

Method to clear the filters and set it as the default

Link copied to clipboard
open override fun deleteNote(update: ProjectUpdate?, note: Note, onDelete: () -> Unit)

Method to delete a note

Link copied to clipboard
open fun deleteProject(project: Project, onDelete: () -> Unit, onFailure: (JsonObject) -> Unit)

Method to delete a project

Link copied to clipboard
fun deleteUpdate(update: ProjectUpdate, onDelete: () -> Unit)

Method to delete an update

Link copied to clipboard
open override fun manageNoteStatus(update: ProjectUpdate?, note: Note)

Method to manage the status of the note

Link copied to clipboard
fun manageStatusesFilter(updateStatus: <Error class: unknown class>, selected: Boolean)

Method to manage the values in the updateStatusesFilters list

Link copied to clipboard

Method to publish an update, so set its status on UpdateStatus.PUBLISHED

Link copied to clipboard
open override fun retrieveProject()

Method to retrieve the data of a Project

Link copied to clipboard

Method to start an update, so set its status on UpdateStatus.IN_DEVELOPMENT