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 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 a VenueResponse record class.
      Parameters:
      dataSource - the value for the dataSource record component
      localifyId - the value for the localifyId record component
      id - the value for the id record component
      name - the value for the name record component
      type - the value for the type record component
      capacity - the value for the capacity record component
      ageRequirement - the value for the ageRequirement record component
      rawLocationString - the value for the rawLocationString record component
      country - the value for the country record component
      region - the value for the region record component
      locality - the value for the locality record component
      streetAddress - the value for the streetAddress record component
      postalCode - the value for the postalCode record component
      latitude - the value for the latitude record component
      longitude - the value for the longitude record component
      eventIds - the value for the eventIds record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dataSource

      public DataSource dataSource()
      Returns the value of the dataSource record component.
      Returns:
      the value of the dataSource record component
    • localifyId

      public UUID localifyId()
      Returns the value of the localifyId record component.
      Returns:
      the value of the localifyId record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • capacity

      public int capacity()
      Returns the value of the capacity record component.
      Returns:
      the value of the capacity record component
    • ageRequirement

      public int ageRequirement()
      Returns the value of the ageRequirement record component.
      Returns:
      the value of the ageRequirement record component
    • rawLocationString

      public String rawLocationString()
      Returns the value of the rawLocationString record component.
      Returns:
      the value of the rawLocationString record component
    • country

      public String country()
      Returns the value of the country record component.
      Returns:
      the value of the country record component
    • region

      public String region()
      Returns the value of the region record component.
      Returns:
      the value of the region record component
    • locality

      public String locality()
      Returns the value of the locality record component.
      Returns:
      the value of the locality record component
    • streetAddress

      public String streetAddress()
      Returns the value of the streetAddress record component.
      Returns:
      the value of the streetAddress record component
    • postalCode

      public String postalCode()
      Returns the value of the postalCode record component.
      Returns:
      the value of the postalCode record component
    • latitude

      public Double latitude()
      Returns the value of the latitude record component.
      Returns:
      the value of the latitude record component
    • longitude

      public Double longitude()
      Returns the value of the longitude record component.
      Returns:
      the value of the longitude record component
    • eventIds

      public List<String> eventIds()
      Returns the value of the eventIds record component.
      Returns:
      the value of the eventIds record component