Class RecommendedEventDto

java.lang.Object
org.localify.dto.RecommendedEventDto

public class RecommendedEventDto extends Object
Data Transfer Object for a recommended event. Switched to a normal class to be able to implement #equals and use #distinct on streams.
  • Constructor Details

    • RecommendedEventDto

      public RecommendedEventDto(UUID id, String name, Double percentMatch, Instant startTime, VenueResponse venue, List<BasicArtistLocalResponse> artists, List<GenreResponse> genres, boolean isFavorite, boolean hasLocalArtistPerforming, String ticketUrl, List<RecommendedArtistDto.SimilarArtistDto> similar, Instant createdAt)
      Constructs a new RecommendedEventDto.
      Parameters:
      id - The ID of the event.
      name - The name of the event.
      percentMatch - The match percentage for the recommendation.
      startTime - The start time of the event.
      venue - The venue of the event.
      artists - The artists performing at the event.
      genres - The genres associated with the event.
      isFavorite - Whether the event is a favorite of the user.
      hasLocalArtistPerforming - Whether a local artist is performing at the event.
      ticketUrl - The URL to purchase tickets.
      similar - A list of similar artists.
      createdAt - The creation timestamp of the recommendation.
  • Method Details

    • getId

      public UUID getId()
      Gets the ID of the event.
      Returns:
      The event ID.
    • setId

      public void setId(UUID id)
      Sets the ID of the event.
      Parameters:
      id - The event ID.
    • getName

      public String getName()
      Gets the name of the event.
      Returns:
      The event name.
    • setName

      public void setName(String name)
      Sets the name of the event.
      Parameters:
      name - The event name.
    • getPercentMatch

      public Double getPercentMatch()
      Gets the match percentage.
      Returns:
      The match percentage.
    • setPercentMatch

      public void setPercentMatch(Double percentMatch)
      Sets the match percentage.
      Parameters:
      percentMatch - The match percentage.
    • getStartTime

      public Instant getStartTime()
      Gets the start time of the event.
      Returns:
      The start time.
    • setStartTime

      public void setStartTime(Instant startTime)
      Sets the start time of the event.
      Parameters:
      startTime - The start time.
    • getVenue

      public VenueResponse getVenue()
      Gets the venue of the event.
      Returns:
      The venue.
    • setVenue

      public void setVenue(VenueResponse venue)
      Sets the venue of the event.
      Parameters:
      venue - The venue.
    • getArtists

      public List<BasicArtistLocalResponse> getArtists()
      Gets the list of artists performing at the event.
      Returns:
      The list of artists.
    • setArtists

      public void setArtists(List<BasicArtistLocalResponse> artists)
      Sets the list of artists performing at the event.
      Parameters:
      artists - The list of artists.
    • getGenres

      public List<GenreResponse> getGenres()
      Gets the list of genres associated with the event.
      Returns:
      The list of genres.
    • setGenres

      public void setGenres(List<GenreResponse> genres)
      Sets the list of genres associated with the event.
      Parameters:
      genres - The list of genres.
    • isFavorite

      public boolean isFavorite()
      Checks if the event is a favorite of the user.
      Returns:
      true if the event is a favorite, false otherwise.
    • setFavorite

      public void setFavorite(boolean isFavorite)
      Sets whether the event is a favorite of the user.
      Parameters:
      isFavorite - true if the event is a favorite, false otherwise.
    • isHasLocalArtistPerforming

      public boolean isHasLocalArtistPerforming()
      Checks if a local artist is performing at the event.
      Returns:
      true if a local artist is performing, false otherwise.
    • setHasLocalArtistPerforming

      public void setHasLocalArtistPerforming(boolean hasLocalArtistPerforming)
      Sets whether a local artist is performing at the event.
      Parameters:
      hasLocalArtistPerforming - true if a local artist is performing, false otherwise.
    • getTicketUrl

      public String getTicketUrl()
      Gets the ticket URL for the event.
      Returns:
      The ticket URL.
    • setTicketUrl

      public void setTicketUrl(String ticketUrl)
      Sets the ticket URL for the event.
      Parameters:
      ticketUrl - The ticket URL.
    • getSimilar

      Gets the list of similar artists.
      Returns:
      The list of similar artists.
    • setSimilar

      public void setSimilar(List<RecommendedArtistDto.SimilarArtistDto> similar)
      Sets the list of similar artists.
      Parameters:
      similar - The list of similar artists.
    • getCreatedAt

      public Instant getCreatedAt()
      Gets the creation timestamp of the recommendation.
      Returns:
      The creation timestamp.
    • setCreatedAt

      public void setCreatedAt(Instant createdAt)
      Sets the creation timestamp of the recommendation.
      Parameters:
      createdAt - The creation timestamp.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object