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

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

Functions

Link copied to clipboard

Method to set the availability of the candidates member

Link copied to clipboard
fun countCandidatesMember(membersEdited: Int = 0)

Method to count the total amount of the candidates members

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
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