Class EntrantEvent

java.lang.Object
com.example.lottery.model.EntrantEvent

public class EntrantEvent extends Object
Model class representing an entrant's participation record in an event's waiting list.

Target Firestore path: events/{eventId}/waitingList/{userId}

  • Constructor Details

    • EntrantEvent

      public EntrantEvent()
      Default constructor for Firestore serialization.
    • EntrantEvent

      public EntrantEvent(String userId, String userName, String email, String status, com.google.firebase.Timestamp registeredAt, com.google.firebase.Timestamp waitlistedAt, com.google.firebase.Timestamp invitedAt, com.google.firebase.Timestamp acceptedAt, com.google.firebase.Timestamp cancelledAt, com.google.firebase.firestore.GeoPoint location)
      Full constructor for an entrant-event relationship.
  • Method Details

    • fromBundle

      public static EntrantEvent fromBundle(android.os.Bundle b)
      Reconstructs an EntrantEvent from a Bundle created by toBundle().
    • getUserId

      public String getUserId()
    • setUserId

      public void setUserId(String userId)
    • getUserName

      public String getUserName()
    • setUserName

      public void setUserName(String userName)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • getStatus

      public String getStatus()
    • setStatus

      public void setStatus(String status)
    • getRegisteredAt

      public com.google.firebase.Timestamp getRegisteredAt()
    • setRegisteredAt

      public void setRegisteredAt(com.google.firebase.Timestamp registeredAt)
    • getWaitlistedAt

      public com.google.firebase.Timestamp getWaitlistedAt()
    • setWaitlistedAt

      public void setWaitlistedAt(com.google.firebase.Timestamp waitlistedAt)
    • getInvitedAt

      public com.google.firebase.Timestamp getInvitedAt()
    • setInvitedAt

      public void setInvitedAt(com.google.firebase.Timestamp invitedAt)
    • getAcceptedAt

      public com.google.firebase.Timestamp getAcceptedAt()
    • setAcceptedAt

      public void setAcceptedAt(com.google.firebase.Timestamp acceptedAt)
    • getCancelledAt

      public com.google.firebase.Timestamp getCancelledAt()
    • setCancelledAt

      public void setCancelledAt(com.google.firebase.Timestamp cancelledAt)
    • getLocation

      public com.google.firebase.firestore.GeoPoint getLocation()
    • setLocation

      public void setLocation(com.google.firebase.firestore.GeoPoint location)
    • isWaitlisted

      public boolean isWaitlisted()
    • isInvited

      public boolean isInvited()
    • isAccepted

      public boolean isAccepted()
    • isCancelled

      public boolean isCancelled()
    • toBundle

      public android.os.Bundle toBundle()
      Packs this object into a Bundle for safe Fragment argument passing.