public abstract class GHPerson extends Object
GHUser and GHOrganization.| Modifier and Type | Field and Description |
|---|---|
protected String |
avatar_url |
protected String |
blog |
protected String |
company |
protected String |
created_at |
protected String |
email |
protected int |
followers |
protected int |
following |
protected String |
gravatar_id |
protected String |
html_url |
protected int |
id |
protected String |
location |
protected String |
login |
protected String |
name |
protected int |
public_gists |
protected int |
public_repos |
protected String |
url |
| Constructor and Description |
|---|
GHPerson() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAvatarUrl()
Returns a string like 'https://secure.gravatar.com/avatar/0cb9832a01c22c083390f3c5dcb64105'
that indicates the avatar image URL.
|
String |
getBlog()
Gets the blog URL of this user.
|
String |
getCompany()
Gets the company name of this user, like "Sun Microsystems, Inc."
|
String |
getCreatedAt() |
String |
getEmail()
Gets the e-mail address of the user.
|
int |
getFollowersCount() |
int |
getFollowingCount() |
String |
getGravatarId()
Deprecated.
No longer available in the v3 API.
|
int |
getId()
What appears to be a GitHub internal unique number that identifies this user.
|
String |
getLocation()
Gets the location of this user, like "Santa Clara, California"
|
String |
getLogin()
Gets the login ID of this user, like 'kohsuke'
|
String |
getName()
Gets the human-readable name of the user, like "Kohsuke Kawaguchi"
|
int |
getPublicGistCount() |
int |
getPublicRepoCount() |
Map<String,GHRepository> |
getRepositories()
Gets the repositories this user owns.
|
GHRepository |
getRepository(String name) |
Iterable<List<GHRepository>> |
iterateRepositories(int pageSize)
Loads repository list in a pagenated fashion.
|
protected void |
populate()
Fully populate the data by retrieving missing data.
|
protected String login
protected String avatar_url
protected String url
protected String gravatar_id
protected int id
protected String location
protected String blog
protected String email
protected String name
protected String created_at
protected String company
protected String html_url
protected int followers
protected int following
protected int public_repos
protected int public_gists
protected void populate()
throws IOException
IOExceptionpublic Map<String,GHRepository> getRepositories() throws IOException
IOExceptionpublic Iterable<List<GHRepository>> iterateRepositories(int pageSize)
For a person with a lot of repositories, GitHub returns the list of repositories in a pagenated fashion.
Unlike getRepositories(), this method allows the caller to start processing data as it arrives.
Every Iterator.next() call results in I/O. Exceptions that occur during the processing is wrapped
into Error.
public GHRepository getRepository(String name) throws IOException
IOExceptionpublic String getGravatarId()
public String getAvatarUrl()
public String getLogin()
public String getName() throws IOException
IOExceptionpublic String getCompany() throws IOException
IOExceptionpublic String getLocation() throws IOException
IOExceptionpublic String getCreatedAt() throws IOException
IOExceptionpublic String getBlog() throws IOException
IOExceptionpublic String getEmail() throws IOException
IOExceptionpublic int getPublicGistCount()
throws IOException
IOExceptionpublic int getPublicRepoCount()
throws IOException
IOExceptionpublic int getFollowingCount()
throws IOException
IOExceptionpublic int getId()
public int getFollowersCount()
throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.