public abstract class GHPerson extends GHObject
GHUser and GHOrganization.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
avatar_url |
protected java.lang.String |
blog |
protected java.lang.String |
company |
protected java.lang.String |
email |
protected int |
followers |
protected int |
following |
protected java.lang.String |
gravatar_id |
protected java.lang.String |
html_url |
protected java.lang.String |
location |
protected java.lang.String |
login |
protected java.lang.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 |
|---|---|
java.lang.String |
getAvatarUrl()
Returns a string like 'https://secure.gravatar.com/avatar/0cb9832a01c22c083390f3c5dcb64105'
that indicates the avatar image URL.
|
java.lang.String |
getBlog()
Gets the blog URL of this user.
|
java.lang.String |
getCompany()
Gets the company name of this user, like "Sun Microsystems, Inc."
|
java.util.Date |
getCreatedAt()
When was this resource created?
|
java.lang.String |
getEmail()
Gets the e-mail address of the user.
|
int |
getFollowersCount() |
int |
getFollowingCount() |
java.lang.String |
getGravatarId()
Deprecated.
No longer available in the v3 API.
|
java.net.URL |
getHtmlUrl()
URL of this object for humans, which renders some HTML.
|
java.lang.String |
getLocation()
Gets the location of this user, like "Santa Clara, California"
|
java.lang.String |
getLogin()
Gets the login ID of this user, like 'kohsuke'
|
java.lang.String |
getName()
Gets the human-readable name of the user, like "Kohsuke Kawaguchi"
|
int |
getPublicGistCount() |
int |
getPublicRepoCount() |
java.util.Map<java.lang.String,GHRepository> |
getRepositories()
Gets the public repositories this user owns.
|
GHRepository |
getRepository(java.lang.String name) |
java.util.Date |
getUpdatedAt()
When was this resource last updated?
|
java.lang.Iterable<java.util.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 java.lang.String login
protected java.lang.String avatar_url
protected java.lang.String gravatar_id
protected java.lang.String location
protected java.lang.String blog
protected java.lang.String email
protected java.lang.String name
protected java.lang.String company
protected java.lang.String html_url
protected int followers
protected int following
protected int public_repos
protected int public_gists
protected void populate()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<java.lang.String,GHRepository> getRepositories() throws java.io.IOException
To list your own repositories, including private repositories,
use GHMyself.listRepositories()
java.io.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 java.lang.Iterable<java.util.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(java.lang.String name) throws java.io.IOException
java.io.IOExceptionpublic abstract PagedIterable<GHEventInfo> listEvents() throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getGravatarId()
public java.lang.String getAvatarUrl()
public java.lang.String getLogin()
public java.lang.String getName()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getCompany()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getLocation()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Date getCreatedAt()
throws java.io.IOException
GHObjectgetCreatedAt in class GHObjectjava.io.IOExceptionpublic java.util.Date getUpdatedAt()
throws java.io.IOException
GHObjectgetUpdatedAt in class GHObjectjava.io.IOExceptionpublic java.lang.String getBlog()
throws java.io.IOException
java.io.IOExceptionpublic java.net.URL getHtmlUrl()
GHObjectgetHtmlUrl in class GHObjectpublic java.lang.String getEmail()
throws java.io.IOException
java.io.IOExceptionpublic int getPublicGistCount()
throws java.io.IOException
java.io.IOExceptionpublic int getPublicRepoCount()
throws java.io.IOException
java.io.IOExceptionpublic int getFollowingCount()
throws java.io.IOException
java.io.IOExceptionpublic int getFollowersCount()
throws java.io.IOException
java.io.IOExceptionCopyright © 2016. All Rights Reserved.