Class RecommendedArtistResponse
java.lang.Object
org.localify.data.queue.dto.recommend.RecommendedArtistResponse
Represents a response containing a recommended artist and a list of similar artists.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()Gets the ID of the recommended artist.doublegetScore()Gets the recommendation score.Gets the list of similar artists.voidsetId(long id) Sets the ID of the recommended artist.voidsetScore(double score) Sets the recommendation score.voidsetSimilar(List<RecArtistResponseDto> similar) Sets the list of similar artists.toString()Returns a string representation of the object.
-
Constructor Details
-
RecommendedArtistResponse
public RecommendedArtistResponse()Default constructor.
-
-
Method Details
-
getSimilar
Gets the list of similar artists.- Returns:
- A list of similar artists.
-
setSimilar
Sets the list of similar artists.- Parameters:
similar- A list of similar artists.
-
getId
public long getId()Gets the ID of the recommended artist.- Returns:
- The artist ID.
-
setId
public void setId(long id) Sets the ID of the recommended artist.- Parameters:
id- The artist ID.
-
getScore
public double getScore()Gets the recommendation score.- Returns:
- The score.
-
setScore
public void setScore(double score) Sets the recommendation score.- Parameters:
score- The score.
-
toString
Returns a string representation of the object.
-