Package org.localify.user.dto
Record Class UserDetailsResponse
java.lang.Object
java.lang.Record
org.localify.user.dto.UserDetailsResponse
- Record Components:
id- The user's ID.name- The user's name.anonymousUser- Whether the user is anonymous.emailConnected- Whether the user has connected their email.appleConnected- Whether the user has connected their Apple Music account.spotifyConnected- Whether the user has connected their Spotify account.email- The user's email address.appleId- The user's Apple ID.spotifyId- The user's Spotify ID.emailVerified- Whether the user's email has been verified.emailOptIn- Whether the user has opted in to emails.accountCreationDate- The date the user's account was created.isAdmin- Whether the user is an admin.isTeamMember- Whether the user is a team member.profileImage- The user's profile image.playlistUseSeedSongs- Whether the user's playlists should include seed songs.playlistLocalSongsPerSeed- The number of local songs per seed in the user's playlists.spotifyProfileImage- The user's Spotify profile image.playlistGeneration- Whether the user has playlist generation enabled.
public record UserDetailsResponse(UUID id, String name, boolean anonymousUser, boolean emailConnected, boolean appleConnected, boolean spotifyConnected, String email, String appleId, String spotifyId, boolean emailVerified, boolean emailOptIn, Instant accountCreationDate, boolean isAdmin, boolean isTeamMember, String profileImage, Boolean playlistUseSeedSongs, Integer playlistLocalSongsPerSeed, String spotifyProfileImage, Boolean playlistGeneration)
extends Record
A response containing details about a user.
-
Constructor Summary
ConstructorsConstructorDescriptionUserDetailsResponse(UUID id, String name, boolean anonymousUser, boolean emailConnected, boolean appleConnected, boolean spotifyConnected, String email, String appleId, String spotifyId, boolean emailVerified, boolean emailOptIn, Instant accountCreationDate, boolean isAdmin, boolean isTeamMember, String profileImage, Boolean playlistUseSeedSongs, Integer playlistLocalSongsPerSeed, String spotifyProfileImage, Boolean playlistGeneration) Creates an instance of aUserDetailsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountCreationDaterecord component.booleanReturns the value of theanonymousUserrecord component.booleanReturns the value of theappleConnectedrecord component.appleId()Returns the value of theappleIdrecord component.email()Returns the value of theemailrecord component.booleanReturns the value of theemailConnectedrecord component.booleanReturns the value of theemailOptInrecord component.booleanReturns the value of theemailVerifiedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanisAdmin()Returns the value of theisAdminrecord component.booleanReturns the value of theisTeamMemberrecord component.name()Returns the value of thenamerecord component.Returns the value of theplaylistGenerationrecord component.Returns the value of theplaylistLocalSongsPerSeedrecord component.Returns the value of theplaylistUseSeedSongsrecord component.Returns the value of theprofileImagerecord component.booleanReturns the value of thespotifyConnectedrecord component.Returns the value of thespotifyIdrecord component.Returns the value of thespotifyProfileImagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserDetailsResponse
public UserDetailsResponse(UUID id, String name, boolean anonymousUser, boolean emailConnected, boolean appleConnected, boolean spotifyConnected, String email, String appleId, String spotifyId, boolean emailVerified, boolean emailOptIn, Instant accountCreationDate, boolean isAdmin, boolean isTeamMember, String profileImage, Boolean playlistUseSeedSongs, Integer playlistLocalSongsPerSeed, String spotifyProfileImage, Boolean playlistGeneration) Creates an instance of aUserDetailsResponserecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentanonymousUser- the value for theanonymousUserrecord componentemailConnected- the value for theemailConnectedrecord componentappleConnected- the value for theappleConnectedrecord componentspotifyConnected- the value for thespotifyConnectedrecord componentemail- the value for theemailrecord componentappleId- the value for theappleIdrecord componentspotifyId- the value for thespotifyIdrecord componentemailVerified- the value for theemailVerifiedrecord componentemailOptIn- the value for theemailOptInrecord componentaccountCreationDate- the value for theaccountCreationDaterecord componentisAdmin- the value for theisAdminrecord componentisTeamMember- the value for theisTeamMemberrecord componentprofileImage- the value for theprofileImagerecord componentplaylistUseSeedSongs- the value for theplaylistUseSeedSongsrecord componentplaylistLocalSongsPerSeed- the value for theplaylistLocalSongsPerSeedrecord componentspotifyProfileImage- the value for thespotifyProfileImagerecord componentplaylistGeneration- the value for theplaylistGenerationrecord component
-
-
Method Details
-
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. -
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. -
equals
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
anonymousUser
public boolean anonymousUser()Returns the value of theanonymousUserrecord component.- Returns:
- the value of the
anonymousUserrecord component
-
emailConnected
public boolean emailConnected()Returns the value of theemailConnectedrecord component.- Returns:
- the value of the
emailConnectedrecord component
-
appleConnected
public boolean appleConnected()Returns the value of theappleConnectedrecord component.- Returns:
- the value of the
appleConnectedrecord component
-
spotifyConnected
public boolean spotifyConnected()Returns the value of thespotifyConnectedrecord component.- Returns:
- the value of the
spotifyConnectedrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
appleId
Returns the value of theappleIdrecord component.- Returns:
- the value of the
appleIdrecord component
-
spotifyId
Returns the value of thespotifyIdrecord component.- Returns:
- the value of the
spotifyIdrecord component
-
emailVerified
public boolean emailVerified()Returns the value of theemailVerifiedrecord component.- Returns:
- the value of the
emailVerifiedrecord component
-
emailOptIn
public boolean emailOptIn()Returns the value of theemailOptInrecord component.- Returns:
- the value of the
emailOptInrecord component
-
accountCreationDate
Returns the value of theaccountCreationDaterecord component.- Returns:
- the value of the
accountCreationDaterecord component
-
isAdmin
public boolean isAdmin()Returns the value of theisAdminrecord component.- Returns:
- the value of the
isAdminrecord component
-
isTeamMember
public boolean isTeamMember()Returns the value of theisTeamMemberrecord component.- Returns:
- the value of the
isTeamMemberrecord component
-
profileImage
Returns the value of theprofileImagerecord component.- Returns:
- the value of the
profileImagerecord component
-
playlistUseSeedSongs
Returns the value of theplaylistUseSeedSongsrecord component.- Returns:
- the value of the
playlistUseSeedSongsrecord component
-
playlistLocalSongsPerSeed
Returns the value of theplaylistLocalSongsPerSeedrecord component.- Returns:
- the value of the
playlistLocalSongsPerSeedrecord component
-
spotifyProfileImage
Returns the value of thespotifyProfileImagerecord component.- Returns:
- the value of the
spotifyProfileImagerecord component
-
playlistGeneration
Returns the value of theplaylistGenerationrecord component.- Returns:
- the value of the
playlistGenerationrecord component
-