Class Venue

java.lang.Object
org.localify.venue.Venue

@Entity public class Venue extends Object
Represents a venue where events take place.
  • Constructor Details

    • Venue

      protected Venue()
      Default constructor.
    • Venue

      public Venue(@NonNull String name, @Nullable String address, @NonNull City city, @Nullable org.locationtech.jts.geom.Point geoPoint)
      Creates a new venue.
      Parameters:
      name - The name of the venue.
      address - The address of the venue.
      city - The city where the venue is located.
      geoPoint - The geographical point of the venue.
    • Venue

      public Venue(String name)
      Creates a new venue with only a name.
      Parameters:
      name - The name of the venue.
  • Method Details

    • toResponse

      public VenueResponse toResponse()
      Converts the venue to a response object.
      Returns:
      The venue response.
    • toEventNumResponse

      public VenueEventNumResponse toEventNumResponse(int numEvents)
      Converts the venue to a response object with the number of events.
      Parameters:
      numEvents - The number of events at the venue.
      Returns:
      The venue response with the number of events.
    • toExtendedResponse

      public VenueResponseExtended toExtendedResponse(boolean isFavorite)
      Converts the venue to an extended response object.
      Parameters:
      isFavorite - Whether the venue is a favorite of the user.
      Returns:
      The extended venue response.
    • getName

      public String getName()
      Gets the name of the venue.
      Returns:
      The name.
    • setName

      public void setName(String name)
      Sets the name of the venue.
      Parameters:
      name - The name.
    • getAddress

      public String getAddress()
      Gets the address of the venue.
      Returns:
      The address.
    • setAddress

      public void setAddress(String address)
      Sets the address of the venue.
      Parameters:
      address - The address.
    • getCity

      public City getCity()
      Gets the city where the venue is located.
      Returns:
      The city.
    • setCity

      public void setCity(City city)
      Sets the city where the venue is located.
      Parameters:
      city - The city.
    • getId

      public UUID getId()
      Gets the ID of the venue.
      Returns:
      The ID.
    • getGeoPoint

      public org.locationtech.jts.geom.Point getGeoPoint()
      Gets the geographical point of the venue.
      Returns:
      The geographical point.
    • setGeoPoint

      public void setGeoPoint(org.locationtech.jts.geom.Point geoPoint)
      Sets the geographical point of the venue.
      Parameters:
      geoPoint - The geographical point.
    • getPlaylist

      public Playlist getPlaylist()
      Gets the playlist for the venue.
      Returns:
      The playlist.
    • setPlaylist

      public void setPlaylist(Playlist playlist)
      Sets the playlist for the venue.
      Parameters:
      playlist - The playlist.
    • getCreatedAt

      public Instant getCreatedAt()
      Gets the creation timestamp of the venue.
      Returns:
      The creation timestamp.
    • setCreatedAt

      public void setCreatedAt(Instant createdAt)
      Sets the creation timestamp of the venue.
      Parameters:
      createdAt - The creation timestamp.
    • getLastUpdated

      public Instant getLastUpdated()
      Gets the last update timestamp of the venue.
      Returns:
      The last update timestamp.
    • setLastUpdated

      public void setLastUpdated(Instant lastUpdated)
      Sets the last update timestamp of the venue.
      Parameters:
      lastUpdated - The last update timestamp.
    • getCapacity

      public Integer getCapacity()
      Gets the capacity of the venue.
      Returns:
      The capacity.
    • setCapacity

      public void setCapacity(Integer capacity)
      Sets the capacity of the venue.
      Parameters:
      capacity - The capacity.
    • getVenueType

      public String getVenueType()
      Gets the type of the venue.
      Returns:
      The venue type.
    • setVenueType

      public void setVenueType(String venueType)
      Sets the type of the venue.
      Parameters:
      venueType - The venue type.
    • getAgeRequirement

      public Integer getAgeRequirement()
      Gets the age requirement for the venue.
      Returns:
      The age requirement.
    • setAgeRequirement

      public void setAgeRequirement(Integer ageRequirement)
      Sets the age requirement for the venue.
      Parameters:
      ageRequirement - The age requirement.
    • getBandsInTownId

      public String getBandsInTownId()
      Gets the Bandsintown ID of the venue.
      Returns:
      The Bandsintown ID.
    • setBandsInTownId

      public void setBandsInTownId(String bandsInTownId)
      Sets the Bandsintown ID of the venue.
      Parameters:
      bandsInTownId - The Bandsintown ID.
    • getBandsInTownFound

      public Boolean getBandsInTownFound()
      Gets whether the venue was found on Bandsintown.
      Returns:
      Whether the venue was found on Bandsintown.
    • setBandsInTownFound

      public void setBandsInTownFound(Boolean bandsInTownFound)
      Sets whether the venue was found on Bandsintown.
      Parameters:
      bandsInTownFound - Whether the venue was found on Bandsintown.
    • getBandsInTownQueuedAt

      public Instant getBandsInTownQueuedAt()
      Gets the timestamp when the venue was queued for scraping on Bandsintown.
      Returns:
      The Bandsintown queued timestamp.
    • setBandsInTownQueuedAt

      public void setBandsInTownQueuedAt(Instant bandsInTownQueuedAt)
      Sets the timestamp when the venue was queued for scraping on Bandsintown.
      Parameters:
      bandsInTownQueuedAt - The Bandsintown queued timestamp.
    • getBandsInTownUpdatedAt

      public Instant getBandsInTownUpdatedAt()
      Gets the timestamp when the venue was last updated from Bandsintown.
      Returns:
      The Bandsintown updated timestamp.
    • setBandsInTownUpdatedAt

      public void setBandsInTownUpdatedAt(Instant bandsInTownUpdatedAt)
      Sets the timestamp when the venue was last updated from Bandsintown.
      Parameters:
      bandsInTownUpdatedAt - The Bandsintown updated timestamp.
    • setBandsInTownUpdatedAt

      public void setBandsInTownUpdatedAt()
      Sets the timestamp when the venue was last updated from Bandsintown to now.
    • getPollstarQueuedAt

      public Instant getPollstarQueuedAt()
      Gets the timestamp when the venue was queued for scraping on Pollstar.
      Returns:
      The Pollstar queued timestamp.
    • setPollstarQueuedAt

      public void setPollstarQueuedAt(Instant pollstarQueuedAt)
      Sets the timestamp when the venue was queued for scraping on Pollstar.
      Parameters:
      pollstarQueuedAt - The Pollstar queued timestamp.
    • getPollstarId

      public String getPollstarId()
      Gets the Pollstar ID of the venue.
      Returns:
      The Pollstar ID.
    • setPollstarId

      public void setPollstarId(String pollstarId)
      Sets the Pollstar ID of the venue.
      Parameters:
      pollstarId - The Pollstar ID.
    • getPollstarUpdatedAt

      public Instant getPollstarUpdatedAt()
      Gets the timestamp when the venue was last updated from Pollstar.
      Returns:
      The Pollstar updated timestamp.
    • setPollstarUpdatedAt

      public void setPollstarUpdatedAt(Instant pollstarUpdatedAt)
      Sets the timestamp when the venue was last updated from Pollstar.
      Parameters:
      pollstarUpdatedAt - The Pollstar updated timestamp.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object