Class GravatarProfileContactInfo

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

public final class GravatarProfileContactInfo extends Object
Represents a user's public contact information on a Gravatar profile. This information is provided only in authenticated requests.
  • Constructor Details

    • GravatarProfileContactInfo

      public GravatarProfileContactInfo(String homePhone, String workPhone, String cellPhone, String email, String contactForm, String calendar)
      Constructs a new GravatarProfileContactInfo.
      Parameters:
      homePhone - the user's home phone number
      workPhone - the user's work phone number
      cellPhone - the user's cell phone number
      email - the user's email address
      contactForm - the URL to the user's contact form
      calendar - the URL to the user's calendar
      Throws:
      NullPointerException - if any parameter is null
  • Method Details

    • getHomePhone

      public String getHomePhone()
      Returns the user's home phone number.
      Returns:
      the user's home phone number
    • getWorkPhone

      public String getWorkPhone()
      Returns the user's work phone number.
      Returns:
      the user's work phone number
    • getCellPhone

      public String getCellPhone()
      Returns the user's cell phone number.
      Returns:
      the user's cell phone number
    • getEmail

      public String getEmail()
      Returns the user's email address.
      Returns:
      the user's email address
    • getContactForm

      public String getContactForm()
      Returns the URL to the user's contact form.
      Returns:
      the URL to the user's contact form
    • getCalendar

      public String getCalendar()
      Returns the URL to the user's calendar.
      Returns:
      the URL to the user's calendar
    • 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