Class GravatarProfileContactInfo
java.lang.Object
com.github.natche.gravatarjavaclient.profile.serialization.GravatarProfileContactInfo
Represents a user's public contact information on a Gravatar profile.
This information is provided only in authenticated requests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the provided object is equal to this.Returns the URL to the user's calendar.Returns the user's cell phone number.Returns the URL to the user's contact form.getEmail()Returns the user's email address.Returns the user's home phone number.Returns the user's work phone number.inthashCode()Returns a hashcode for this object.toString()Returns a string representation of this object.
-
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 numberworkPhone- the user's work phone numbercellPhone- the user's cell phone numberemail- the user's email addresscontactForm- the URL to the user's contact formcalendar- the URL to the user's calendar- Throws:
NullPointerException- if any parameter is null
-
-
Method Details
-
getHomePhone
Returns the user's home phone number.- Returns:
- the user's home phone number
-
getWorkPhone
Returns the user's work phone number.- Returns:
- the user's work phone number
-
getCellPhone
Returns the user's cell phone number.- Returns:
- the user's cell phone number
-
getEmail
Returns the user's email address.- Returns:
- the user's email address
-
getContactForm
Returns the URL to the user's contact form.- Returns:
- the URL to the user's contact form
-
getCalendar
Returns the URL to the user's calendar.- Returns:
- the URL to the user's calendar
-
equals
Returns whether the provided object is equal to this. -
hashCode
public int hashCode()Returns a hashcode for this object. -
toString
Returns a string representation of this object.
-