Record Class MergeableAccount

java.lang.Object
java.lang.Record
org.localify.auth.dto.web.MergeableAccount
Record Components:
id - The ID of the merge request.
fromUserId - The ID of the user account to merge from.
toUserId - The ID of the user account to merge to.
authToken - The authentication token for the merge operation.
expiresAt - The expiration time of the merge token.
fromUserName - The name of the user to merge from.
fromUserEmail - The email of the user to merge from.
fromUserCreatedAt - The creation timestamp of the user to merge from.
fromUserSpotifyUsername - The Spotify username of the user to merge from.
mergedAccountPreview - A preview of the merged account.

public record MergeableAccount(UUID id, UUID fromUserId, UUID toUserId, String authToken, Instant expiresAt, String fromUserName, String fromUserEmail, Instant fromUserCreatedAt, String fromUserSpotifyUsername, MergedAccountPreview mergedAccountPreview) extends Record
Represents an account that can be merged with another account.
  • Constructor Details

    • MergeableAccount

      public MergeableAccount(UUID id, UUID fromUserId, UUID toUserId, String authToken, Instant expiresAt, String fromUserName, String fromUserEmail, Instant fromUserCreatedAt, String fromUserSpotifyUsername, MergedAccountPreview mergedAccountPreview)
      Creates an instance of a MergeableAccount record class.
      Parameters:
      id - the value for the id record component
      fromUserId - the value for the fromUserId record component
      toUserId - the value for the toUserId record component
      authToken - the value for the authToken record component
      expiresAt - the value for the expiresAt record component
      fromUserName - the value for the fromUserName record component
      fromUserEmail - the value for the fromUserEmail record component
      fromUserCreatedAt - the value for the fromUserCreatedAt record component
      fromUserSpotifyUsername - the value for the fromUserSpotifyUsername record component
      mergedAccountPreview - the value for the mergedAccountPreview 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. All components in this record class are compared with Objects::equals(Object,Object).
      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
    • fromUserId

      public UUID fromUserId()
      Returns the value of the fromUserId record component.
      Returns:
      the value of the fromUserId record component
    • toUserId

      public UUID toUserId()
      Returns the value of the toUserId record component.
      Returns:
      the value of the toUserId record component
    • authToken

      public String authToken()
      Returns the value of the authToken record component.
      Returns:
      the value of the authToken record component
    • expiresAt

      public Instant expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • fromUserName

      public String fromUserName()
      Returns the value of the fromUserName record component.
      Returns:
      the value of the fromUserName record component
    • fromUserEmail

      public String fromUserEmail()
      Returns the value of the fromUserEmail record component.
      Returns:
      the value of the fromUserEmail record component
    • fromUserCreatedAt

      public Instant fromUserCreatedAt()
      Returns the value of the fromUserCreatedAt record component.
      Returns:
      the value of the fromUserCreatedAt record component
    • fromUserSpotifyUsername

      public String fromUserSpotifyUsername()
      Returns the value of the fromUserSpotifyUsername record component.
      Returns:
      the value of the fromUserSpotifyUsername record component
    • mergedAccountPreview

      public MergedAccountPreview mergedAccountPreview()
      Returns the value of the mergedAccountPreview record component.
      Returns:
      the value of the mergedAccountPreview record component