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
    Constructor
    Description
    Avatar(String avatarId, String avatarKey, String gravatarHash, Instant updatedAt)
    Creates an instance of a Avatar record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the avatarId record component.
    Returns the value of the avatarKey record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the gravatarHash record component.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    Returns the value of the updatedAt record component.
    The cache-busting version token used in avatar URLs (never derived from the email).

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Avatar

      public Avatar(String avatarId, String avatarKey, String gravatarHash, Instant updatedAt)
      Creates an instance of a Avatar record class.
      Parameters:
      avatarId - the value for the avatarId record component
      avatarKey - the value for the avatarKey record component
      gravatarHash - the value for the gravatarHash record component
      updatedAt - the value for the updatedAt record component
  • Method Details

    • version

      public String version()
      The cache-busting version token used in avatar URLs (never derived from the email).
    • 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.
    • avatarId

      public String avatarId()
      Returns the value of the avatarId record component.
      Returns:
      the value of the avatarId record component
    • avatarKey

      public String avatarKey()
      Returns the value of the avatarKey record component.
      Returns:
      the value of the avatarKey record component
    • gravatarHash

      public String gravatarHash()
      Returns the value of the gravatarHash record component.
      Returns:
      the value of the gravatarHash record component
    • updatedAt

      public Instant updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component