Class Facility

java.lang.Object
com.example.iconic_raffleevent.model.Facility
All Implemented Interfaces:
Serializable

public class Facility extends Object implements Serializable
Represents a facility associated with an event, containing details such as name, location, additional information, and the creator (organizer).
See Also:
  • Constructor Details

    • Facility

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

      public Facility(String facilityName, String facilityLocation, User creator)
      Constructor for creating a facility with required fields.
      Parameters:
      facilityName - This is the name of the facility.
      facilityLocation - This is the location of the facility.
      creator - This is the User object representing the organizer of the event.
  • Method Details

    • getId

      public String getId()
      Gets the unique identifier for the facility.
      Returns:
      Return the facility ID as a String.
    • setId

      public void setId(String id)
      Sets the unique identifier for the facility.
      Parameters:
      id - This is the unique ID to assign to the facility.
    • getFacilityName

      public String getFacilityName()
      Gets the name of the facility.
      Returns:
      Return the facility name as a String.
    • setFacilityName

      public void setFacilityName(String facilityName)
      Sets the name of the facility.
      Parameters:
      facilityName - This is the name to assign to the facility.
    • getFacilityLocation

      public String getFacilityLocation()
      Gets the location of the facility.
      Returns:
      Return the facility location as a String.
    • setFacilityLocation

      public void setFacilityLocation(String facilityLocation)
      Sets the location of the facility.
      Parameters:
      facilityLocation - This is the location to assign to the facility.
    • getAdditionalInfo

      public String getAdditionalInfo()
      Gets any additional information about the facility.
      Returns:
      Return the additional information as a String.
    • setAdditionalInfo

      public void setAdditionalInfo(String additionalInfo)
      Sets additional information for the facility.
      Parameters:
      additionalInfo - This is additional information to add about the facility.
    • getCreator

      public User getCreator()
      Gets the creator (organizer) of the facility.
      Returns:
      Return the User object representing the creator.
    • setCreator

      public void setCreator(User creator)
      Sets the creator (organizer) of the facility.
      Parameters:
      creator - This is the User object representing the creator to assign.