public class GitHubProfile extends OAuth20Profile
This class is the user profile for GitHub with appropriate getters.
It is returned by the GitHubClient
.
Method : | From the JSON profile response : |
---|---|
The attributes of the CommonProfile |
|
String getEmail() | the email attribute |
String getFirstName() | null |
String getFamilyName() | null |
String getDisplayName() | the name attribute |
String getUsername() | the login attribute |
Gender getGender() | Gender.UNSPECIFIED |
Locale getLocale() | null |
String getPictureUrl() | the avatar_url attribute |
String getProfileUrl() | the html_url attribute |
String getLocation() | the location attribute |
More specific attributes | |
String getCompany() | the company attribute |
Integer getFollowing() | the following attribute |
String getBlog() | the blog attribute |
Integer getPublicRepos() | the public_repos attribute |
Integer getPublicGists() | the public_gists attribute |
Integer getDiskUsage() | the disk_usage attribute |
Integer getCollaborators() | the collaborators attribute |
GitHubPlan getPlan() | the plan attribute |
Integer getOwnedPrivateRepos() | the owned_private_repos attribute |
Integer getTotalPrivateRepos() | the total_private_repos attribute |
Integer getPrivateGists() | the private_gists attribute |
Integer getFollowers() | the followers attribute |
Date getCreatedAt() | the created_at attribute |
String getType() | the type attribute |
String getGravatarId() | the gravatar_id attribute |
String getUrl() | the url attribute |
Boolean getHireable() | the hireable attribute |
String getBio() | the bio attribute |
GitHubClient
,
Serialized FormUSERNAME
logger, SEPARATOR
Constructor and Description |
---|
GitHubProfile() |
Modifier and Type | Method and Description |
---|---|
protected AttributesDefinition |
getAttributesDefinition()
Return the attributes definition for this user profile.
|
String |
getBio() |
String |
getBlog() |
Integer |
getCollaborators() |
String |
getCompany() |
Date |
getCreatedAt() |
Integer |
getDiskUsage() |
String |
getDisplayName()
Return the displayed name of the user.
|
Integer |
getFollowers() |
Integer |
getFollowing() |
String |
getGravatarId() |
Boolean |
getHireable() |
Integer |
getOwnedPrivateRepos() |
String |
getPictureUrl()
Return the url of the picture of the user.
|
GitHubPlan |
getPlan() |
Integer |
getPrivateGists() |
String |
getProfileUrl()
Return the url of the profile of the user.
|
Integer |
getPublicGists() |
Integer |
getPublicRepos() |
Integer |
getTotalPrivateRepos() |
String |
getType() |
Date |
getUpdatedAt() |
String |
getUrl() |
String |
getUsername()
Return the username of the user.
|
clear, getAccessToken, setAccessToken
getEmail, getFamilyName, getFirstName, getGender, getLocale, getLocation
addAttribute, addAttributes, addPermission, addPermissions, addRole, addRoles, build, getAttribute, getAttribute, getAttributes, getId, getPermissions, getRoles, getTypedId, isRemembered, readExternal, setId, setRemembered, toString, writeExternal
protected AttributesDefinition getAttributesDefinition()
UserProfile
getAttributesDefinition
in class UserProfile
public String getDisplayName()
CommonProfile
getDisplayName
in class CommonProfile
public String getUsername()
CommonProfile
getUsername
in class CommonProfile
public String getPictureUrl()
CommonProfile
getPictureUrl
in class CommonProfile
public String getProfileUrl()
CommonProfile
getProfileUrl
in class CommonProfile
public String getCompany()
public Integer getFollowing()
public String getBlog()
public Integer getPublicRepos()
public Integer getPublicGists()
public Integer getDiskUsage()
public Integer getCollaborators()
public GitHubPlan getPlan()
public Integer getOwnedPrivateRepos()
public Integer getTotalPrivateRepos()
public Integer getPrivateGists()
public Integer getFollowers()
public Date getCreatedAt()
public Date getUpdatedAt()
public String getType()
public String getGravatarId()
public String getUrl()
public Boolean getHireable()
public String getBio()
Copyright © 2016. All rights reserved.