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 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 a UserDetailsResponse record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      anonymousUser - the value for the anonymousUser record component
      emailConnected - the value for the emailConnected record component
      appleConnected - the value for the appleConnected record component
      spotifyConnected - the value for the spotifyConnected record component
      email - the value for the email record component
      appleId - the value for the appleId record component
      spotifyId - the value for the spotifyId record component
      emailVerified - the value for the emailVerified record component
      emailOptIn - the value for the emailOptIn record component
      accountCreationDate - the value for the accountCreationDate record component
      isAdmin - the value for the isAdmin record component
      isTeamMember - the value for the isTeamMember record component
      profileImage - the value for the profileImage record component
      playlistUseSeedSongs - the value for the playlistUseSeedSongs record component
      playlistLocalSongsPerSeed - the value for the playlistLocalSongsPerSeed record component
      spotifyProfileImage - the value for the spotifyProfileImage record component
      playlistGeneration - the value for the playlistGeneration record component
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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
    • anonymousUser

      public boolean anonymousUser()
      Returns the value of the anonymousUser record component.
      Returns:
      the value of the anonymousUser record component
    • emailConnected

      public boolean emailConnected()
      Returns the value of the emailConnected record component.
      Returns:
      the value of the emailConnected record component
    • appleConnected

      public boolean appleConnected()
      Returns the value of the appleConnected record component.
      Returns:
      the value of the appleConnected record component
    • spotifyConnected

      public boolean spotifyConnected()
      Returns the value of the spotifyConnected record component.
      Returns:
      the value of the spotifyConnected record component
    • email

      public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • appleId

      public String appleId()
      Returns the value of the appleId record component.
      Returns:
      the value of the appleId record component
    • spotifyId

      public String spotifyId()
      Returns the value of the spotifyId record component.
      Returns:
      the value of the spotifyId record component
    • emailVerified

      public boolean emailVerified()
      Returns the value of the emailVerified record component.
      Returns:
      the value of the emailVerified record component
    • emailOptIn

      public boolean emailOptIn()
      Returns the value of the emailOptIn record component.
      Returns:
      the value of the emailOptIn record component
    • accountCreationDate

      public Instant accountCreationDate()
      Returns the value of the accountCreationDate record component.
      Returns:
      the value of the accountCreationDate record component
    • isAdmin

      public boolean isAdmin()
      Returns the value of the isAdmin record component.
      Returns:
      the value of the isAdmin record component
    • isTeamMember

      public boolean isTeamMember()
      Returns the value of the isTeamMember record component.
      Returns:
      the value of the isTeamMember record component
    • profileImage

      public String profileImage()
      Returns the value of the profileImage record component.
      Returns:
      the value of the profileImage record component
    • playlistUseSeedSongs

      public Boolean playlistUseSeedSongs()
      Returns the value of the playlistUseSeedSongs record component.
      Returns:
      the value of the playlistUseSeedSongs record component
    • playlistLocalSongsPerSeed

      public Integer playlistLocalSongsPerSeed()
      Returns the value of the playlistLocalSongsPerSeed record component.
      Returns:
      the value of the playlistLocalSongsPerSeed record component
    • spotifyProfileImage

      public String spotifyProfileImage()
      Returns the value of the spotifyProfileImage record component.
      Returns:
      the value of the spotifyProfileImage record component
    • playlistGeneration

      public Boolean playlistGeneration()
      Returns the value of the playlistGeneration record component.
      Returns:
      the value of the playlistGeneration record component