Package org.localify.auth.dto.web
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 Summary
ConstructorsConstructorDescriptionMergeableAccount(UUID id, UUID fromUserId, UUID toUserId, String authToken, Instant expiresAt, String fromUserName, String fromUserEmail, Instant fromUserCreatedAt, String fromUserSpotifyUsername, MergedAccountPreview mergedAccountPreview) Creates an instance of aMergeableAccountrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.Returns the value of thefromUserCreatedAtrecord component.Returns the value of thefromUserEmailrecord component.Returns the value of thefromUserIdrecord component.Returns the value of thefromUserNamerecord component.Returns the value of thefromUserSpotifyUsernamerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themergedAccountPreviewrecord component.final StringtoString()Returns a string representation of this record class.toUserId()Returns the value of thetoUserIdrecord component.
-
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 aMergeableAccountrecord class.- Parameters:
id- the value for theidrecord componentfromUserId- the value for thefromUserIdrecord componenttoUserId- the value for thetoUserIdrecord componentauthToken- the value for theauthTokenrecord componentexpiresAt- the value for theexpiresAtrecord componentfromUserName- the value for thefromUserNamerecord componentfromUserEmail- the value for thefromUserEmailrecord componentfromUserCreatedAt- the value for thefromUserCreatedAtrecord componentfromUserSpotifyUsername- the value for thefromUserSpotifyUsernamerecord componentmergedAccountPreview- the value for themergedAccountPreviewrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
fromUserId
Returns the value of thefromUserIdrecord component.- Returns:
- the value of the
fromUserIdrecord component
-
toUserId
Returns the value of thetoUserIdrecord component.- Returns:
- the value of the
toUserIdrecord component
-
authToken
Returns the value of theauthTokenrecord component.- Returns:
- the value of the
authTokenrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
fromUserName
Returns the value of thefromUserNamerecord component.- Returns:
- the value of the
fromUserNamerecord component
-
fromUserEmail
Returns the value of thefromUserEmailrecord component.- Returns:
- the value of the
fromUserEmailrecord component
-
fromUserCreatedAt
Returns the value of thefromUserCreatedAtrecord component.- Returns:
- the value of the
fromUserCreatedAtrecord component
-
fromUserSpotifyUsername
Returns the value of thefromUserSpotifyUsernamerecord component.- Returns:
- the value of the
fromUserSpotifyUsernamerecord component
-
mergedAccountPreview
Returns the value of themergedAccountPreviewrecord component.- Returns:
- the value of the
mergedAccountPreviewrecord component
-