-
Returns the image object associated with the event.
androidx.lifecycle.MutableLiveData<Image>
Returns the image object wrapped in a MutableLiveData.
androidx.lifecycle.MutableLiveData<List<Image>>
Returns the live image list.
void
Deletes an image from Firestore.
void
Called when a new image document is added.
void
void
Called when an existing image document is modified.
void
Called when an image document is removed.
void
Called when the image is loaded successfully.
static void
Saves an image into images/{imageDocId}.
void
Updates the image object associated with the event.
void
void
Replaces the current list contents and refreshes the grid.
Event(boolean isPrivate,
String organizerId,
String name,
String description,
Image image,
com.google.firebase.Timestamp registrationStartTimestamp,
com.google.firebase.Timestamp registrationEndTimestamp,
com.google.firebase.Timestamp eventStartTimestamp,
com.google.firebase.Timestamp eventEndTimestamp,
boolean geolocationEnforced,
int eventCapacity,
int waitingListCapacity)
Creates a new event for organizer-side event creation before it is persisted.
Event(String eventId,
boolean isPrivate,
String organizerId,
ArrayList<String> coOrganizerId,
String name,
String description,
Image image,
com.google.firebase.Timestamp createdTimestamp,
com.google.firebase.Timestamp modifiedTimestamp,
com.google.firebase.Timestamp registrationStartTimestamp,
com.google.firebase.Timestamp registrationEndTimestamp,
com.google.firebase.Timestamp eventStartTimestamp,
com.google.firebase.Timestamp eventEndTimestamp,
boolean geolocationEnforced,
int eventCapacity,
int waitingListCapacity,
int drawARound,
WaitingList waitingList,
PendingList pendingList,
AcceptedList acceptedList,
DeclinedList declinedList)
Creates an event using the full field set expected when hydrating from
EventDB.