Record Class VenueResponse
java.lang.Object
java.lang.Record
org.localify.data.ingest.response.VenueResponse
- Record Components:
dataSource- The data source of the response.localifyId- The Localify ID of the venue.id- The ID of the venue in the data source.name- The name of the venue.type- The type of the venue.capacity- The capacity of the venue.ageRequirement- The age requirement for the venue.rawLocationString- The raw location string for the venue.country- The country of the venue.region- The region of the venue.locality- The locality of the venue.streetAddress- The street address of the venue.postalCode- The postal code of the venue.latitude- The latitude of the venue.longitude- The longitude of the venue.eventIds- A list of event IDs (relative to the data source) for events at this venue.
- All Implemented Interfaces:
Serializable
public record VenueResponse(DataSource dataSource, UUID localifyId, String id, String name, String type, int capacity, int ageRequirement, String rawLocationString, String country, String region, String locality, String streetAddress, String postalCode, Double latitude, Double longitude, List<String> eventIds)
extends Record
implements Serializable
Represents a venue response from a scraper.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVenueResponse(DataSource dataSource, UUID localifyId, String id, String name, String type, int capacity, int ageRequirement, String rawLocationString, String country, String region, String locality, String streetAddress, String postalCode, Double latitude, Double longitude, List<String> eventIds) Creates an instance of aVenueResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theageRequirementrecord component.intcapacity()Returns the value of thecapacityrecord component.country()Returns the value of thecountryrecord component.Returns the value of thedataSourcerecord component.final booleanIndicates whether some other object is "equal to" this one.eventIds()Returns the value of theeventIdsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.latitude()Returns the value of thelatituderecord component.Returns the value of thelocalifyIdrecord component.locality()Returns the value of thelocalityrecord component.Returns the value of thelongituderecord component.name()Returns the value of thenamerecord component.Returns the value of thepostalCoderecord component.Returns the value of therawLocationStringrecord component.region()Returns the value of theregionrecord component.Returns the value of thestreetAddressrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
VenueResponse
public VenueResponse(DataSource dataSource, UUID localifyId, String id, String name, String type, int capacity, int ageRequirement, String rawLocationString, String country, String region, String locality, String streetAddress, String postalCode, Double latitude, Double longitude, List<String> eventIds) Creates an instance of aVenueResponserecord class.- Parameters:
dataSource- the value for thedataSourcerecord componentlocalifyId- the value for thelocalifyIdrecord componentid- the value for theidrecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentcapacity- the value for thecapacityrecord componentageRequirement- the value for theageRequirementrecord componentrawLocationString- the value for therawLocationStringrecord componentcountry- the value for thecountryrecord componentregion- the value for theregionrecord componentlocality- the value for thelocalityrecord componentstreetAddress- the value for thestreetAddressrecord componentpostalCode- the value for thepostalCoderecord componentlatitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord componenteventIds- the value for theeventIdsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
dataSource
Returns the value of thedataSourcerecord component.- Returns:
- the value of the
dataSourcerecord component
-
localifyId
Returns the value of thelocalifyIdrecord component.- Returns:
- the value of the
localifyIdrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
capacity
public int capacity()Returns the value of thecapacityrecord component.- Returns:
- the value of the
capacityrecord component
-
ageRequirement
public int ageRequirement()Returns the value of theageRequirementrecord component.- Returns:
- the value of the
ageRequirementrecord component
-
rawLocationString
Returns the value of therawLocationStringrecord component.- Returns:
- the value of the
rawLocationStringrecord component
-
country
Returns the value of thecountryrecord component.- Returns:
- the value of the
countryrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
locality
Returns the value of thelocalityrecord component.- Returns:
- the value of the
localityrecord component
-
streetAddress
Returns the value of thestreetAddressrecord component.- Returns:
- the value of the
streetAddressrecord component
-
postalCode
Returns the value of thepostalCoderecord component.- Returns:
- the value of the
postalCoderecord component
-
latitude
Returns the value of thelatituderecord component.- Returns:
- the value of the
latituderecord component
-
longitude
Returns the value of thelongituderecord component.- Returns:
- the value of the
longituderecord component
-
eventIds
Returns the value of theeventIdsrecord component.- Returns:
- the value of the
eventIdsrecord component
-