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 Summary
ConstructorsConstructorDescriptionEventResponse(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 aEventResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartistIdsrecord component.Returns the value of thecandidateNamesrecord component.Returns the value of thedataSourcerecord component.doorTime()Returns the value of thedoorTimerecord component.endTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehighPricerecord component.id()Returns the value of theidrecord component.Returns the value of thelocalifyArtistIdsrecord component.Returns the value of thelocalifyIdrecord component.lowPrice()Returns the value of thelowPricerecord component.name()Returns the value of thenamerecord component.Returns the value of thesimilarEventIdsrecord component.Returns the value of thestartTimerecord component.Returns the value of theticketUrlrecord component.final StringtoString()Returns a string representation of this record class.venue()Returns the value of thevenuerecord component.
-
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 aEventResponserecord class.- Parameters:
dataSource- the value for thedataSourcerecord componentid- the value for theidrecord componentlocalifyId- the value for thelocalifyIdrecord componentname- the value for thenamerecord componentlocalifyArtistIds- the value for thelocalifyArtistIdsrecord componentartistIds- the value for theartistIdsrecord componentcandidateNames- the value for thecandidateNamesrecord componentticketUrl- the value for theticketUrlrecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord componentdoorTime- the value for thedoorTimerecord componentlowPrice- the value for thelowPricerecord componenthighPrice- the value for thehighPricerecord componentvenue- the value for thevenuerecord componentsimilarEventIds- the value for thesimilarEventIdsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
dataSource
Returns the value of thedataSourcerecord component.- Returns:
- the value of the
dataSourcerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
localifyId
Returns the value of thelocalifyIdrecord component.- Returns:
- the value of the
localifyIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
localifyArtistIds
Returns the value of thelocalifyArtistIdsrecord component.- Returns:
- the value of the
localifyArtistIdsrecord component
-
artistIds
Returns the value of theartistIdsrecord component.- Returns:
- the value of the
artistIdsrecord component
-
candidateNames
Returns the value of thecandidateNamesrecord component.- Returns:
- the value of the
candidateNamesrecord component
-
ticketUrl
Returns the value of theticketUrlrecord component.- Returns:
- the value of the
ticketUrlrecord component
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
endTime
Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
doorTime
Returns the value of thedoorTimerecord component.- Returns:
- the value of the
doorTimerecord component
-
lowPrice
Returns the value of thelowPricerecord component.- Returns:
- the value of the
lowPricerecord component
-
highPrice
Returns the value of thehighPricerecord component.- Returns:
- the value of the
highPricerecord component
-
venue
Returns the value of thevenuerecord component.- Returns:
- the value of the
venuerecord component
-
similarEventIds
Returns the value of thesimilarEventIdsrecord component.- Returns:
- the value of the
similarEventIdsrecord component
-