Class Facility
java.lang.Object
com.example.iconic_raffleevent.model.Facility
- All Implemented Interfaces:
Serializable
Represents a facility associated with an event, containing details such as name, location,
additional information, and the creator (organizer).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets any additional information about the facility.Gets the creator (organizer) of the facility.Gets the location of the facility.Gets the name of the facility.getId()
Gets the unique identifier for the facility.void
setAdditionalInfo
(String additionalInfo) Sets additional information for the facility.void
setCreator
(User creator) Sets the creator (organizer) of the facility.void
setFacilityLocation
(String facilityLocation) Sets the location of the facility.void
setFacilityName
(String facilityName) Sets the name of the facility.void
Sets the unique identifier for the facility.
-
Constructor Details
-
Facility
public Facility()Default constructor for Firestore serialization. -
Facility
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
Gets the unique identifier for the facility.- Returns:
- Return the facility ID as a String.
-
setId
Sets the unique identifier for the facility.- Parameters:
id
- This is the unique ID to assign to the facility.
-
getFacilityName
Gets the name of the facility.- Returns:
- Return the facility name as a String.
-
setFacilityName
Sets the name of the facility.- Parameters:
facilityName
- This is the name to assign to the facility.
-
getFacilityLocation
Gets the location of the facility.- Returns:
- Return the facility location as a String.
-
setFacilityLocation
Sets the location of the facility.- Parameters:
facilityLocation
- This is the location to assign to the facility.
-
getAdditionalInfo
Gets any additional information about the facility.- Returns:
- Return the additional information as a String.
-
setAdditionalInfo
Sets additional information for the facility.- Parameters:
additionalInfo
- This is additional information to add about the facility.
-
getCreator
Gets the creator (organizer) of the facility.- Returns:
- Return the User object representing the creator.
-
setCreator
Sets the creator (organizer) of the facility.- Parameters:
creator
- This is the User object representing the creator to assign.
-