ScheduleUpdateScreenViewModel

class ScheduleUpdateScreenViewModel(projectId: String) : EquinoxViewModel

The ScheduleUpdateScreenViewModel class is the support class used to schedule a new update for a project

Author

N7ghtm4r3 - Tecknobit

Parameters

projectId

The identifier of the project where the update must be attached

See also

  • @see Retriever.RetrieverWrapper

EquinoxViewModel

Constructors

Link copied to clipboard
constructor(projectId: String)

Properties

Link copied to clipboard

changeNoteContent -> the content of the change note

Link copied to clipboard

changeNoteContentError -> whether the changeNoteContent field is not valid

Link copied to clipboard

changeNotes -> the list of the change notes of the update

Link copied to clipboard
Link copied to clipboard

targetVersion -> the value of the target version

Link copied to clipboard

targetVersionError -> whether the targetVersion field is not valid

Functions

Link copied to clipboard

Method to add a change note to the changeNotes list

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
open override fun canRetrieverStart(): Boolean
Link copied to clipboard
open override fun continueToRetrieve(currentContext: KClass<*>): Boolean
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard
fun removeChangeNote(changeNote: String)

Method to remove a change note from the changeNotes list

Link copied to clipboard
open override fun restartRetriever()
Link copied to clipboard
open fun restartRetrieverIf(condition: Boolean)
Link copied to clipboard
open override fun retrieve(currentContext: KClass<*>, routine: suspend () -> Unit, repeatRoutine: Boolean, refreshDelay: Long)
Link copied to clipboard

Method to schedule the new update

Link copied to clipboard
open fun setActiveContext(currentContext: KClass<*>)
Link copied to clipboard
fun showSnackbarMessage(response: JsonObject)
fun showSnackbarMessage(message: StringResource)
Link copied to clipboard
open override fun suspendRetriever()
Link copied to clipboard
open fun suspendRetrieverIf(condition: Boolean)