Collection
Screen
View
Model
The CollectionScreenViewModel class is the support class used by CollectionScreen to communicate with the backend and to execute the refreshing routines to update the UI data and working with the LinksCollection
Author
N7ghtm4r3 - Tecknobit
Parameters
: the host to launch the snackbar messages
: the initial value of the LinksCollection
See also
Constructors
Functions
Function to execute the request to add links to a collection
Function to execute the request to share a collection with teams
Function to execute the request to delete a collection
Function to decree if the counter value reached the threshold of the LAST_CAN_GOES_VALUE
Function to execute the request to refresh the collection displayed
Function to execute the request to remove from the collection a link
Function to execute the request to fetch only the collections owned by the localUser, the collections fetched will be set to localUser.collections
Function to execute the request to fetch only the links owned by the localUser, the links fetched will be set to localUser.links
Function to execute the request to fetch only the teams owned by the localUser, the teams fetched will be set to localUser.teams