Record Class UserProfiles.Avatar
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.actions.profile.UserProfiles.Avatar
- Enclosing class:
UserProfiles
public static record UserProfiles.Avatar(String avatarId, String avatarKey, String gravatarHash, Instant updatedAt)
extends Record
What GET /avatars serves for an avatarId: the user's photo (avatarKey), or
their chosen Gravatar (fetched and re-encoded by the server, so neither the
email hash nor the viewer reaches Gravatar's URL from a browser).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavatarId()Returns the value of theavatarIdrecord component.Returns the value of theavatarKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegravatarHashrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.version()The cache-busting version token used in avatar URLs (never derived from the email).
-
Constructor Details
-
Avatar
Creates an instance of aAvatarrecord class.- Parameters:
avatarId- the value for theavatarIdrecord componentavatarKey- the value for theavatarKeyrecord componentgravatarHash- the value for thegravatarHashrecord componentupdatedAt- the value for theupdatedAtrecord component
-
-
Method Details
-
version
The cache-busting version token used in avatar URLs (never derived from the email). -
toString
-
hashCode
-
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). -
avatarId
Returns the value of theavatarIdrecord component.- Returns:
- the value of the
avatarIdrecord component
-
avatarKey
Returns the value of theavatarKeyrecord component.- Returns:
- the value of the
avatarKeyrecord component
-
gravatarHash
Returns the value of thegravatarHashrecord component.- Returns:
- the value of the
gravatarHashrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-