Class OrganizerViewModel
java.lang.Object
androidx.lifecycle.ViewModel
com.example.slacks_lottoevent.viewmodel.OrganizerViewModel
public class OrganizerViewModel
extends androidx.lifecycle.ViewModel
ViewModel for Organizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionandroidx.lifecycle.MutableLiveData<Organizer>
Get the current organizer live dataGet the organizers live datavoid
updateOrganizer
(ArrayList<String> eventIds) Update the organizerMethods inherited from class androidx.lifecycle.ViewModel
addCloseable, onCleared
-
Constructor Details
-
OrganizerViewModel
public OrganizerViewModel()Constructor for OrganizerViewModel
-
-
Method Details
-
getOrganizersLiveData
Get the organizers live data- Returns:
- organizers live data
-
getCurrentOrganizerLiveData
Get the current organizer live data- Returns:
- current organizer live data
-
updateOrganizer
Update the organizer- Parameters:
eventIds
- event ids
-