Class GravatarProfile
java.lang.Object
com.github.natche.gravatarjavaclient.profile.serialization.GravatarProfile
The results of a Gravatar profile request.
Profile Request API Documentation.
-
Constructor Summary
ConstructorsConstructorDescriptionGravatarProfile(String hash, String displayName, String profileUrl, String avatarUrl, String avatarAltText, String location, String description, String jobTitle, String company, List<GravatarProfileVerifiedAccount> verifiedAccounts, String pronunciation, String pronouns, String timezone, List<GravatarProfileLanguage> languages, String firstName, String lastName, boolean isOrganization, List<GravatarProfileUrl> links, List<GravatarProfileInterest> interests, GravatarProfilePayments payments, GravatarProfileContactInfo contactInfo, List<GravatarProfileGalleryImage> gallery, int numberVerifiedAccounts, String lastProfileEdit, String registrationDate) Constructs a new GravatarProfile. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the provided object is equal to this.Returns alternative text describing the user’s avatar.Returns the URL to the user’s avatar image, if set.Returns the name of the company where the user is employed.Returns the contact info object containing the contact information the user has displayed on their account.Returns a short biography or description about the user found on their profile.Returns the user’s display name that appears on their profile.Returns the user's first name.com.google.common.collect.ImmutableList<GravatarProfileGalleryImage>Returns the gallery images the user has displayed on their account.getHash()Returns the SHA256 hash of the user’s primary email address.com.google.common.collect.ImmutableList<GravatarProfileInterest>Returns the interests the user has displayed on their profile.Returns the user’s current job title.com.google.common.collect.ImmutableList<GravatarProfileLanguage>Returns the languages the user has selected on their profile.Returns the user's last name.Returns the last time this account was edited at.com.google.common.collect.ImmutableList<GravatarProfileUrl>getLinks()Returns the links the user has displayed on their profile.Returns the user’s geographical location.intReturns the number of verified accounts associated with this user.Returns the payments objects containing the payment data the user has displayed on their account.Returns the full URL to the user’s Gravatar profile.Returns the pronouns the user prefers to use.Returns a phonetic guide to pronouncing the user’s name.Returns the date this account was registered at.Returns the timezone the user has set.com.google.common.collect.ImmutableList<GravatarProfileVerifiedAccount>Returns a list of verified accounts the user has added to their profile.inthashCode()Returns a hashcode for this object.booleanReturns whether this account is marked as an organization account.toString()Returns a string representation of this object.
-
Constructor Details
-
GravatarProfile
public GravatarProfile(String hash, String displayName, String profileUrl, String avatarUrl, String avatarAltText, String location, String description, String jobTitle, String company, List<GravatarProfileVerifiedAccount> verifiedAccounts, String pronunciation, String pronouns, String timezone, List<GravatarProfileLanguage> languages, String firstName, String lastName, boolean isOrganization, List<GravatarProfileUrl> links, List<GravatarProfileInterest> interests, GravatarProfilePayments payments, GravatarProfileContactInfo contactInfo, List<GravatarProfileGalleryImage> gallery, int numberVerifiedAccounts, String lastProfileEdit, String registrationDate) Constructs a new GravatarProfile.- Parameters:
hash- the SHA256 hash of the user's primary email addressdisplayName- the user's display nameprofileUrl- the full URL to the user's Gravatar profileavatarUrl- the URL to the user's avatar imageavatarAltText- alternative text describing the user's avatarlocation- the user's geographical locationdescription- a short biography or description about the userjobTitle- the user's current job titlecompany- the name of the company where the user is employedverifiedAccounts- a list of verified accounts the user has added to their profilepronunciation- a phonetic guide to pronouncing the user's namepronouns- the pronouns the user prefers to usetimezone- the timezone the user has setlanguages- the languages the user has selected on their profilefirstName- the user's first namelastName- the user's last nameisOrganization- whether this account is marked as an organization accountlinks- the links the user has displayed on their profileinterests- the interests the user has displayed on their profilepayments- the payments objects containing the payment datacontactInfo- the contact info object containing the contact informationgallery- the gallery images the user has displayed on their accountnumberVerifiedAccounts- the number of verified accounts associated with this userlastProfileEdit- the last time this account was editedregistrationDate- the date this account was registered
-
-
Method Details
-
getHash
Returns the SHA256 hash of the user’s primary email address.- Returns:
- the SHA256 hash of the user’s primary email address
-
getDisplayName
Returns the user’s display name that appears on their profile.- Returns:
- the user’s display name that appears on their profile
-
getProfileUrl
Returns the full URL to the user’s Gravatar profile.- Returns:
- the full URL to the user’s Gravatar profile
-
getAvatarUrl
Returns the URL to the user’s avatar image, if set.- Returns:
- the URL to the user’s avatar image, if set
-
getAvatarAltText
Returns alternative text describing the user’s avatar.- Returns:
- alternative text describing the user’s avatar
-
getLocation
Returns the user’s geographical location.- Returns:
- The user’s geographical location
-
getDescription
Returns a short biography or description about the user found on their profile.- Returns:
- a short biography or description about the user found on their profile
-
getJobTitle
Returns the user’s current job title.- Returns:
- the user’s current job title
-
getCompany
Returns the name of the company where the user is employed.- Returns:
- the name of the company where the user is employed
-
getVerifiedAccounts
public com.google.common.collect.ImmutableList<GravatarProfileVerifiedAccount> getVerifiedAccounts()Returns a list of verified accounts the user has added to their profile. The number of verified accounts displayed is limited to a maximum of 4 in unauthenticated requests- Returns:
- a list of verified accounts
-
getPronunciation
Returns a phonetic guide to pronouncing the user’s name.- Returns:
- a phonetic guide to pronouncing the user’s name
-
getPronouns
Returns the pronouns the user prefers to use.- Returns:
- the pronouns the user prefers to use
-
getTimezone
Returns the timezone the user has set.- Returns:
- the timezone the user has set
-
getLanguages
Returns the languages the user has selected on their profile.- Returns:
- the languages the user has selected on their profile
-
getFirstName
Returns the user's first name.- Returns:
- the user's first name
-
getLastName
Returns the user's last name.- Returns:
- the user's last name
-
isOrganization
public boolean isOrganization()Returns whether this account is marked as an organization account.- Returns:
- whether this account is marked as an organization account
-
getLinks
Returns the links the user has displayed on their profile.- Returns:
- the links the user has displayed on their profile
-
getInterests
Returns the interests the user has displayed on their profile.- Returns:
- the interests the user has displayed on their profile
-
getPayments
Returns the payments objects containing the payment data the user has displayed on their account.- Returns:
- the payments objects containing the payment data the user has displayed on their account
-
getContactInfo
Returns the contact info object containing the contact information the user has displayed on their account.- Returns:
- the contact info object containing the contact information the user has displayed on their account
-
getGallery
Returns the gallery images the user has displayed on their account.- Returns:
- the gallery images the user has displayed on their account
-
getNumberVerifiedAccounts
public int getNumberVerifiedAccounts()Returns the number of verified accounts associated with this user.- Returns:
- the number of verified accounts associated with this user
-
getLastProfileEdit
Returns the last time this account was edited at.- Returns:
- the last time this account was edited at
-
getRegistrationDate
Returns the date this account was registered at.- Returns:
- the date this account was registered at
-
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.
-