public abstract class GHPerson extends GHObject
GHUser and GHOrganization.| Modifier and Type | Field and Description |
|---|---|
protected String |
avatar_url |
protected String |
blog |
protected String |
company |
protected String |
email |
protected int |
followers |
protected int |
following |
protected String |
gravatar_id |
protected String |
html_url |
protected String |
location |
protected String |
login |
protected String |
name |
protected int |
public_gists |
protected int |
public_repos |
created_at, id, updated_at, 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."
|
Date |
getCreatedAt()
When was this resource created?
|
String |
getEmail()
Gets the e-mail address of the user.
|
int |
getFollowersCount() |
int |
getFollowingCount() |
String |
getGravatarId()
Deprecated.
No longer available in the v3 API.
|
String |
getHtmlUrl() |
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 public repositories this user owns.
|
GHRepository |
getRepository(String name) |
Date |
getUpdatedAt()
When was this resource last updated?
|
Iterable<List<GHRepository>> |
iterateRepositories(int pageSize)
Deprecated.
|
abstract PagedIterable<GHEventInfo> |
listEvents()
Lists events for an organization or an user.
|
PagedIterable<GHRepository> |
listRepositories()
Lists up all the repositories using a 30 items page size.
|
PagedIterable<GHRepository> |
listRepositories(int pageSize)
Lists up all the repositories using the specified page size.
|
protected void |
populate()
Fully populate the data by retrieving missing data.
|
protected String login
protected String avatar_url
protected String gravatar_id
protected String location
protected String blog
protected String email
protected String name
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
To list your own repositories, including private repositories,
use GHMyself.listRepositories()
IOExceptionpublic PagedIterable<GHRepository> listRepositories()
getRepositories(), this does not wait until all the repositories are returned.public PagedIterable<GHRepository> listRepositories(int pageSize)
pageSize - size for each page of items returned by GitHub. Maximum page size is 100.
Unlike getRepositories(), this does not wait until all the repositories are returned.public Iterable<List<GHRepository>> iterateRepositories(int pageSize)
listRepositories()
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 abstract PagedIterable<GHEventInfo> listEvents() 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 Date getCreatedAt() throws IOException
GHObjectgetCreatedAt in class GHObjectIOExceptionpublic Date getUpdatedAt() throws IOException
GHObjectgetUpdatedAt in class GHObjectIOExceptionpublic String getBlog() throws IOException
IOExceptionpublic String getHtmlUrl()
public String getEmail() throws IOException
IOExceptionpublic int getPublicGistCount()
throws IOException
IOExceptionpublic int getPublicRepoCount()
throws IOException
IOExceptionpublic int getFollowingCount()
throws IOException
IOExceptionpublic int getFollowersCount()
throws IOException
IOExceptionCopyright © 2015. All rights reserved.