Record Class EventResponse

java.lang.Object
java.lang.Record
org.localify.data.ingest.response.EventResponse
Record Components:
dataSource - The data source of the response.
id - The ID of the event in the data source.
localifyId - The Localify ID of the event.
name - The name of the event.
localifyArtistIds - A list of Localify IDs for the artists performing at the event.
artistIds - A list of data source specific IDs for the artists.
candidateNames - A list of candidate names for artists at the event.
ticketUrl - The URL to purchase tickets for the event.
startTime - The start time of the event as a string.
endTime - The end time of the event.
doorTime - The door time of the event.
lowPrice - The low price for the event.
highPrice - The high price for the event.
venue - The venue of the event.
similarEventIds - A list of IDs for similar events.

public record EventResponse(DataSource dataSource, String id, UUID localifyId, String name, List<UUID> localifyArtistIds, List<String> artistIds, List<String> candidateNames, String ticketUrl, String startTime, Instant endTime, Instant doorTime, Double lowPrice, Double highPrice, VenueResponse venue, List<String> similarEventIds) extends Record
Represents an event response from a scraper.
  • Constructor Details

    • EventResponse

      public EventResponse(DataSource dataSource, String id, UUID localifyId, String name, List<UUID> localifyArtistIds, List<String> artistIds, List<String> candidateNames, String ticketUrl, String startTime, Instant endTime, Instant doorTime, Double lowPrice, Double highPrice, VenueResponse venue, List<String> similarEventIds)
      Creates an instance of a EventResponse record class.
      Parameters:
      dataSource - the value for the dataSource record component
      id - the value for the id record component
      localifyId - the value for the localifyId record component
      name - the value for the name record component
      localifyArtistIds - the value for the localifyArtistIds record component
      artistIds - the value for the artistIds record component
      candidateNames - the value for the candidateNames record component
      ticketUrl - the value for the ticketUrl record component
      startTime - the value for the startTime record component
      endTime - the value for the endTime record component
      doorTime - the value for the doorTime record component
      lowPrice - the value for the lowPrice record component
      highPrice - the value for the highPrice record component
      venue - the value for the venue record component
      similarEventIds - the value for the similarEventIds 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. All components in this record class are compared with Objects::equals(Object,Object).
      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
    • id

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

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

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

      public List<UUID> localifyArtistIds()
      Returns the value of the localifyArtistIds record component.
      Returns:
      the value of the localifyArtistIds record component
    • artistIds

      public List<String> artistIds()
      Returns the value of the artistIds record component.
      Returns:
      the value of the artistIds record component
    • candidateNames

      public List<String> candidateNames()
      Returns the value of the candidateNames record component.
      Returns:
      the value of the candidateNames record component
    • ticketUrl

      public String ticketUrl()
      Returns the value of the ticketUrl record component.
      Returns:
      the value of the ticketUrl record component
    • startTime

      public String startTime()
      Returns the value of the startTime record component.
      Returns:
      the value of the startTime record component
    • endTime

      public Instant endTime()
      Returns the value of the endTime record component.
      Returns:
      the value of the endTime record component
    • doorTime

      public Instant doorTime()
      Returns the value of the doorTime record component.
      Returns:
      the value of the doorTime record component
    • lowPrice

      public Double lowPrice()
      Returns the value of the lowPrice record component.
      Returns:
      the value of the lowPrice record component
    • highPrice

      public Double highPrice()
      Returns the value of the highPrice record component.
      Returns:
      the value of the highPrice record component
    • venue

      public VenueResponse venue()
      Returns the value of the venue record component.
      Returns:
      the value of the venue record component
    • similarEventIds

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