Record Class EventResponseExtendedLocal

java.lang.Object
java.lang.Record
org.localify.event.dto.EventResponseExtendedLocal
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.
hasLocalArtistPerforming - Whether a local artist is performing at the event.

public record EventResponseExtendedLocal(UUID id, String name, Instant startTime, Instant endTime, Double lowPrice, Double highPrice, String ticketUrl, String applePlaylistId, String spotifyPlaylistId, VenueResponse venue, List<BasicArtistLocalResponse> topArtists, Boolean isFavorite, Boolean hasLocalArtistPerforming) extends Record
Represents an extended response for an event, including local artist information.
  • Constructor Details

    • EventResponseExtendedLocal

      public EventResponseExtendedLocal(UUID id, String name, Instant startTime, Instant endTime, Double lowPrice, Double highPrice, String ticketUrl, @Nullable String applePlaylistId, @Nullable String spotifyPlaylistId, @Nullable VenueResponse venue, List<BasicArtistLocalResponse> topArtists, Boolean isFavorite, Boolean hasLocalArtistPerforming)
      Creates an instance of a EventResponseExtendedLocal record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      startTime - the value for the startTime record component
      endTime - the value for the endTime record component
      lowPrice - the value for the lowPrice record component
      highPrice - the value for the highPrice record component
      ticketUrl - the value for the ticketUrl record component
      applePlaylistId - the value for the applePlaylistId record component
      spotifyPlaylistId - the value for the spotifyPlaylistId record component
      venue - the value for the venue record component
      topArtists - the value for the topArtists record component
      isFavorite - the value for the isFavorite record component
      hasLocalArtistPerforming - the value for the hasLocalArtistPerforming 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.
    • id

      public UUID 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
    • startTime

      public Instant 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
    • 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
    • ticketUrl

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

      @Nullable public String applePlaylistId()
      Returns the value of the applePlaylistId record component.
      Returns:
      the value of the applePlaylistId record component
    • spotifyPlaylistId

      @Nullable public String spotifyPlaylistId()
      Returns the value of the spotifyPlaylistId record component.
      Returns:
      the value of the spotifyPlaylistId record component
    • venue

      @Nullable public VenueResponse venue()
      Returns the value of the venue record component.
      Returns:
      the value of the venue record component
    • topArtists

      public List<BasicArtistLocalResponse> topArtists()
      Returns the value of the topArtists record component.
      Returns:
      the value of the topArtists record component
    • isFavorite

      public Boolean isFavorite()
      Returns the value of the isFavorite record component.
      Returns:
      the value of the isFavorite record component
    • hasLocalArtistPerforming

      public Boolean hasLocalArtistPerforming()
      Returns the value of the hasLocalArtistPerforming record component.
      Returns:
      the value of the hasLocalArtistPerforming record component