Class GravatarProfileVerifiedAccount

java.lang.Object
com.github.natche.gravatarjavaclient.profile.serialization.GravatarProfileVerifiedAccount

public final class GravatarProfileVerifiedAccount extends Object
Represents a verified account profile for a Gravatar user.
  • Constructor Details

    • GravatarProfileVerifiedAccount

      public GravatarProfileVerifiedAccount(String serviceType, String serviceLabel, String serviceIcon, String url)
      Constructs a new GravatarProfileVerifiedAccount.
      Parameters:
      serviceType - the type of the service
      serviceLabel - the label or name of the service
      serviceIcon - the URL to the service's icon
      url - the URL to the user's profile on the service
      Throws:
      NullPointerException - if any parameter is null
  • Method Details

    • getServiceType

      public String getServiceType()
      Returns the type of the service.
      Returns:
      the type of the service
    • getServiceLabel

      public String getServiceLabel()
      Returns the label or name of the service.
      Returns:
      the label or name of the service
    • getServiceIcon

      public String getServiceIcon()
      Returns the URL to the service's icon.
      Returns:
      the URL to the service's icon
    • getUrl

      public String getUrl()
      Returns the URL to the user's profile on the service.
      Returns:
      the URL to the user's profile on the service
    • equals

      public boolean equals(Object o)
      Returns whether the provided object is equal to this.
      Overrides:
      equals in class Object
      Parameters:
      o - the other object
      Returns:
      whether the provided object is equal to this
    • hashCode

      public int hashCode()
      Returns a hashcode for this object.
      Overrides:
      hashCode in class Object
      Returns:
      a hashcode for this object
    • toString

      public String toString()
      Returns a string representation of this object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this object