Package org.localify.venue
Class Venue
java.lang.Object
org.localify.venue.Venue
Represents a venue where events take place.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the address of the venue.Gets the age requirement for the venue.Gets whether the venue was found on Bandsintown.Gets the Bandsintown ID of the venue.Gets the timestamp when the venue was queued for scraping on Bandsintown.Gets the timestamp when the venue was last updated from Bandsintown.Gets the capacity of the venue.getCity()Gets the city where the venue is located.Gets the creation timestamp of the venue.org.locationtech.jts.geom.PointGets the geographical point of the venue.getId()Gets the ID of the venue.Gets the last update timestamp of the venue.getName()Gets the name of the venue.Gets the playlist for the venue.Gets the Pollstar ID of the venue.Gets the timestamp when the venue was queued for scraping on Pollstar.Gets the timestamp when the venue was last updated from Pollstar.Gets the type of the venue.inthashCode()voidsetAddress(String address) Sets the address of the venue.voidsetAgeRequirement(Integer ageRequirement) Sets the age requirement for the venue.voidsetBandsInTownFound(Boolean bandsInTownFound) Sets whether the venue was found on Bandsintown.voidsetBandsInTownId(String bandsInTownId) Sets the Bandsintown ID of the venue.voidsetBandsInTownQueuedAt(Instant bandsInTownQueuedAt) Sets the timestamp when the venue was queued for scraping on Bandsintown.voidSets the timestamp when the venue was last updated from Bandsintown to now.voidsetBandsInTownUpdatedAt(Instant bandsInTownUpdatedAt) Sets the timestamp when the venue was last updated from Bandsintown.voidsetCapacity(Integer capacity) Sets the capacity of the venue.voidSets the city where the venue is located.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp of the venue.voidsetGeoPoint(org.locationtech.jts.geom.Point geoPoint) Sets the geographical point of the venue.voidsetLastUpdated(Instant lastUpdated) Sets the last update timestamp of the venue.voidSets the name of the venue.voidsetPlaylist(Playlist playlist) Sets the playlist for the venue.voidsetPollstarId(String pollstarId) Sets the Pollstar ID of the venue.voidsetPollstarQueuedAt(Instant pollstarQueuedAt) Sets the timestamp when the venue was queued for scraping on Pollstar.voidsetPollstarUpdatedAt(Instant pollstarUpdatedAt) Sets the timestamp when the venue was last updated from Pollstar.voidsetVenueType(String venueType) Sets the type of the venue.toEventNumResponse(int numEvents) Converts the venue to a response object with the number of events.toExtendedResponse(boolean isFavorite) Converts the venue to an extended response object.Converts the venue to a response object.
-
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
Creates a new venue with only a name.- Parameters:
name- The name of the venue.
-
-
Method Details
-
toResponse
Converts the venue to a response object.- Returns:
- The venue response.
-
toEventNumResponse
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
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
Gets the name of the venue.- Returns:
- The name.
-
setName
Sets the name of the venue.- Parameters:
name- The name.
-
getAddress
Gets the address of the venue.- Returns:
- The address.
-
setAddress
Sets the address of the venue.- Parameters:
address- The address.
-
getCity
Gets the city where the venue is located.- Returns:
- The city.
-
setCity
Sets the city where the venue is located.- Parameters:
city- The city.
-
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
Gets the playlist for the venue.- Returns:
- The playlist.
-
setPlaylist
Sets the playlist for the venue.- Parameters:
playlist- The playlist.
-
getCreatedAt
Gets the creation timestamp of the venue.- Returns:
- The creation timestamp.
-
setCreatedAt
Sets the creation timestamp of the venue.- Parameters:
createdAt- The creation timestamp.
-
getLastUpdated
Gets the last update timestamp of the venue.- Returns:
- The last update timestamp.
-
setLastUpdated
Sets the last update timestamp of the venue.- Parameters:
lastUpdated- The last update timestamp.
-
getCapacity
Gets the capacity of the venue.- Returns:
- The capacity.
-
setCapacity
Sets the capacity of the venue.- Parameters:
capacity- The capacity.
-
getVenueType
Gets the type of the venue.- Returns:
- The venue type.
-
setVenueType
Sets the type of the venue.- Parameters:
venueType- The venue type.
-
getAgeRequirement
Gets the age requirement for the venue.- Returns:
- The age requirement.
-
setAgeRequirement
Sets the age requirement for the venue.- Parameters:
ageRequirement- The age requirement.
-
getBandsInTownId
Gets the Bandsintown ID of the venue.- Returns:
- The Bandsintown ID.
-
setBandsInTownId
Sets the Bandsintown ID of the venue.- Parameters:
bandsInTownId- The Bandsintown ID.
-
getBandsInTownFound
Gets whether the venue was found on Bandsintown.- Returns:
- Whether the venue was found on Bandsintown.
-
setBandsInTownFound
Sets whether the venue was found on Bandsintown.- Parameters:
bandsInTownFound- Whether the venue was found on Bandsintown.
-
getBandsInTownQueuedAt
Gets the timestamp when the venue was queued for scraping on Bandsintown.- Returns:
- The Bandsintown queued timestamp.
-
setBandsInTownQueuedAt
Sets the timestamp when the venue was queued for scraping on Bandsintown.- Parameters:
bandsInTownQueuedAt- The Bandsintown queued timestamp.
-
getBandsInTownUpdatedAt
Gets the timestamp when the venue was last updated from Bandsintown.- Returns:
- The Bandsintown updated timestamp.
-
setBandsInTownUpdatedAt
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
Gets the timestamp when the venue was queued for scraping on Pollstar.- Returns:
- The Pollstar queued timestamp.
-
setPollstarQueuedAt
Sets the timestamp when the venue was queued for scraping on Pollstar.- Parameters:
pollstarQueuedAt- The Pollstar queued timestamp.
-
getPollstarId
Gets the Pollstar ID of the venue.- Returns:
- The Pollstar ID.
-
setPollstarId
Sets the Pollstar ID of the venue.- Parameters:
pollstarId- The Pollstar ID.
-
getPollstarUpdatedAt
Gets the timestamp when the venue was last updated from Pollstar.- Returns:
- The Pollstar updated timestamp.
-
setPollstarUpdatedAt
Sets the timestamp when the venue was last updated from Pollstar.- Parameters:
pollstarUpdatedAt- The Pollstar updated timestamp.
-
equals
-
hashCode
public int hashCode()
-