Package org.localify.event.dto
Record Class EventResponse
java.lang.Object
java.lang.Record
org.localify.event.dto.EventResponse
- 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.
public record EventResponse(UUID id, String name, String startTime, Instant endTime, Double lowPrice, Double highPrice, String ticketUrl, String applePlaylistId, String spotifyPlaylistId, VenueResponse venue)
extends Record
Represents a response for an event.
-
Constructor Summary
Constructors -
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.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.final StringtoString()Returns a string representation of this record class.venue()Returns the value of thevenuerecord component.
-
Constructor Details
-
EventResponse
public EventResponse(UUID id, String name, String startTime, Instant endTime, Double lowPrice, Double highPrice, String ticketUrl, @Nullable String applePlaylistId, @Nullable String spotifyPlaylistId, @Nullable VenueResponse venue) Creates an instance of aEventResponserecord 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 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
-