Package org.localify.user.support
Class UserSeedArtist
java.lang.Object
org.localify.user.support.UserSeedArtist
Represents a seed artist for a user.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the composite key for a user seed artist. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor.UserSeedArtist(User user, Artist artist, UserSeedArtistSource source) Creates a new user seed artist. -
Method Summary
Modifier and TypeMethodDescriptionvoidBlacklists the seed artist.Gets the artist.Gets the blacklisted timestamp.Gets the creation timestamp.getKey()Gets the key.Gets the source of the seed artist.Gets the last update timestamp.getUser()Gets the user.voidSets the artist.voidsetCreatedAt(Instant createdAt) Sets the creation timestamp.voidsetKey(UserSeedArtist.Key key) Sets the key.voidsetSource(UserSeedArtistSource source) Sets the source of the seed artist.voidsetUpdatedAt(Instant updatedAt) Sets the last update timestamp.voidSets the user.Converts the user seed artist to a seed artist response.voidUnblacklists the seed artist.
-
Constructor Details
-
UserSeedArtist
protected UserSeedArtist()Default constructor. -
UserSeedArtist
Creates a new user seed artist.- Parameters:
user- The user.artist- The artist.source- The source of the seed artist.
-
-
Method Details
-
toSeedResponse
Converts the user seed artist to a seed artist response.- Returns:
- The seed artist response.
-
getUser
Gets the user.- Returns:
- The user.
-
setUser
Sets the user.- Parameters:
user- The user.
-
getArtist
Gets the artist.- Returns:
- The artist.
-
setArtist
Sets the artist.- Parameters:
artist- The artist.
-
getCreatedAt
Gets the creation timestamp.- Returns:
- The creation timestamp.
-
getUpdatedAt
Gets the last update timestamp.- Returns:
- The last update timestamp.
-
getKey
Gets the key.- Returns:
- The key.
-
setKey
Sets the key.- Parameters:
key- The key.
-
setCreatedAt
Sets the creation timestamp.- Parameters:
createdAt- The creation timestamp.
-
setUpdatedAt
Sets the last update timestamp.- Parameters:
updatedAt- The last update timestamp.
-
getSource
Gets the source of the seed artist.- Returns:
- The source.
-
setSource
Sets the source of the seed artist.- Parameters:
source- The source.
-
getBlacklistedAt
Gets the blacklisted timestamp.- Returns:
- The blacklisted timestamp.
-
blacklist
public void blacklist()Blacklists the seed artist. -
unblacklist
public void unblacklist()Unblacklists the seed artist.
-