Package org.localify.event.dto
Record Class EventResponseExtended
java.lang.Object
java.lang.Record
org.localify.event.dto.EventResponseExtended
- Record Components:
id- The ID of the event.name- The name of the event.startTime- The start time of the event.endTime- The end time of the event.lowPrice- The low price of the event.highPrice- The high price of the event.ticketUrl- The ticket URL of the event.applePlaylistId- The Apple Music playlist ID for the event.spotifyPlaylistId- The Spotify playlist ID for the event.venue- The venue of the event.topArtists- A list of top artists performing at the event.isFavorite- Whether the event is a favorite of the user.
public record EventResponseExtended(UUID id, String name, Instant startTime, Instant endTime, Double lowPrice, Double highPrice, String ticketUrl, String applePlaylistId, String spotifyPlaylistId, VenueResponse venue, List<EventArtistResponse> topArtists, Boolean isFavorite)
extends Record
Represents an extended response for an event, including top artists.
-
Constructor Summary
ConstructorsConstructorDescriptionEventResponseExtended(UUID id, String name, Instant startTime, Instant endTime, Double lowPrice, Double highPrice, String ticketUrl, String applePlaylistId, String spotifyPlaylistId, VenueResponse venue, List<EventArtistResponse> topArtists, Boolean isFavorite) Creates an instance of aEventResponseExtendedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplePlaylistIdrecord 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 theisFavoriterecord component.lowPrice()Returns the value of thelowPricerecord component.name()Returns the value of thenamerecord component.Returns the value of thespotifyPlaylistIdrecord component.Returns the value of thestartTimerecord component.Returns the value of theticketUrlrecord component.Returns the value of thetopArtistsrecord component.final StringtoString()Returns a string representation of this record class.venue()Returns the value of thevenuerecord component.
-
Constructor Details
-
EventResponseExtended
public EventResponseExtended(UUID id, String name, Instant startTime, Instant endTime, Double lowPrice, Double highPrice, String ticketUrl, @Nullable String applePlaylistId, @Nullable String spotifyPlaylistId, @Nullable VenueResponse venue, List<EventArtistResponse> topArtists, Boolean isFavorite) Creates an instance of aEventResponseExtendedrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord componentlowPrice- the value for thelowPricerecord componenthighPrice- the value for thehighPricerecord componentticketUrl- the value for theticketUrlrecord componentapplePlaylistId- the value for theapplePlaylistIdrecord componentspotifyPlaylistId- the value for thespotifyPlaylistIdrecord componentvenue- the value for thevenuerecord componenttopArtists- the value for thetopArtistsrecord componentisFavorite- the value for theisFavoriterecord 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). -
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
-
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
-
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
-
ticketUrl
Returns the value of theticketUrlrecord component.- Returns:
- the value of the
ticketUrlrecord component
-
applePlaylistId
Returns the value of theapplePlaylistIdrecord component.- Returns:
- the value of the
applePlaylistIdrecord component
-
spotifyPlaylistId
Returns the value of thespotifyPlaylistIdrecord component.- Returns:
- the value of the
spotifyPlaylistIdrecord component
-
venue
Returns the value of thevenuerecord component.- Returns:
- the value of the
venuerecord component
-
topArtists
Returns the value of thetopArtistsrecord component.- Returns:
- the value of the
topArtistsrecord component
-
isFavorite
Returns the value of theisFavoriterecord component.- Returns:
- the value of the
isFavoriterecord component
-