GroupManagerViewModel

The GroupManagerViewModel serves as a base view model for managing group creation or editing related operations

Author

N7ghtm4r3 - Tecknobit

See also

EquinoxViewModel

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val candidateMembersState: PaginationState<Int, GroupMember>

candidateMembersState the state used to manage the pagination for the loadCandidateMembers method

Link copied to clipboard

candidateProjects the list of the candidates projects to share in the group

Link copied to clipboard
Link copied to clipboard
val group: StateFlow<Group?>
Link copied to clipboard

groupMembers the list of the current members in the group

Link copied to clipboard

groupProjects the list of the current projects shared in the group

Link copied to clipboard
Link copied to clipboard

userProjects the list of the projects owned by the com.tecknobit.pandoro.localUser

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard

Method to set the availability of the candidates member

Link copied to clipboard
open override fun canRetrieverStart(): Boolean
Link copied to clipboard
open override fun continueToRetrieve(currentContext: KClass<*>): Boolean
Link copied to clipboard
fun countCandidatesMember(membersEdited: Int = 0)

Method to count the total amount of the candidates members

Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard

Method to manage a candidate project in the groupProjects and candidateProjects lists

Link copied to clipboard

Method to set the no-availability of the candidates member

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
abstract fun retrieveGroup()

Method to retrieve the data of a Group

Link copied to clipboard

Method to retrieve the current projects owned by the com.tecknobit.pandoro.localUser

Link copied to clipboard
open fun setActiveContext(currentContext: KClass<*>)
Link copied to clipboard
fun showSnackbarMessage(message: String, actionLabel: String?, onDismiss: () -> Unit?, onActionPerformed: () -> Unit?, withDismissAction: Boolean, duration: SnackbarDuration)
fun showSnackbarMessage(response: JsonObject, actionLabel: String?, onDismiss: () -> Unit?, onActionPerformed: () -> Unit?, withDismissAction: Boolean, duration: SnackbarDuration)
fun showSnackbarMessage(message: StringResource, actionLabel: StringResource?, onDismiss: () -> Unit?, onActionPerformed: () -> Unit?, withDismissAction: Boolean, duration: SnackbarDuration)
Link copied to clipboard
open override fun suspendRetriever()
Link copied to clipboard
open fun suspendRetrieverIf(condition: Boolean)