Record Class UserFavoriteEventResponse

java.lang.Object
java.lang.Record
org.localify.user.dto.UserFavoriteEventResponse
Record Components:
id - The event's ID.
name - The event's name.
startTime - The event's start time.
endTime - The event's end time.
lowPrice - The event's lowest price.
highPrice - The event's highest price.
ticketUrl - The URL to purchase tickets for the event.
applePlaylistId - The ID of the event's Apple Music playlist.
spotifyPlaylistId - The ID of the event's Spotify playlist.
venue - The event's venue.
topArtists - The 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.
rating - The user's rating of the event.

public record UserFavoriteEventResponse(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, UserFavoriteEventRating rating) extends Record
A response containing details about a user's favorite event.
  • Constructor Details

  • 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
    • rating

      public UserFavoriteEventRating rating()
      Returns the value of the rating record component.
      Returns:
      the value of the rating record component