public class GHUser extends GHPerson
avatar_url, blog, company, email, followers, following, gravatar_id, html_url, location, login, name, public_gists, public_repos, site_admin, typecreated_at, id, responseHeaderFields, updated_at, url| Constructor and Description |
|---|
GHUser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
follow()
Follow this user.
|
GHPersonSet<GHUser> |
getFollowers()
Lists the users who are following this user.
|
GHPersonSet<GHUser> |
getFollows()
Lists the users that this user is following
|
List<GHKey> |
getKeys()
Gets keys.
|
GHPersonSet<GHOrganization> |
getOrganizations()
Gets the organization that this user belongs to publicly.
|
int |
hashCode() |
boolean |
isMemberOf(GHOrganization org)
Returns true if this user belongs to the specified organization.
|
boolean |
isMemberOf(GHTeam team)
Returns true if this user belongs to the specified team.
|
boolean |
isPublicMemberOf(GHOrganization org)
Returns true if this user belongs to the specified organization as a public member.
|
PagedIterable<GHEventInfo> |
listEvents()
Lists events performed by a user (this includes private events if the caller is authenticated.
|
PagedIterable<GHUser> |
listFollowers()
Lists the users who are following this user.
|
PagedIterable<GHUser> |
listFollows()
Lists the users that this user is following
|
PagedIterable<GHGist> |
listGists()
Lists Gists created by this user.
|
PagedIterable<GHRepository> |
listStarredRepositories()
Lists all the repositories that this user has starred.
|
PagedIterable<GHRepository> |
listSubscriptions()
Lists all the subscribed (aka watched) repositories.
|
void |
unfollow()
Unfollow this user.
|
getAvatarUrl, getBlog, getCompany, getCreatedAt, getEmail, getFollowersCount, getFollowingCount, getGravatarId, getHtmlUrl, getLocation, getLogin, getName, getPublicGistCount, getPublicRepoCount, getRepositories, getRepository, getType, getUpdatedAt, isSiteAdmin, iterateRepositories, listRepositories, listRepositories, populategetId, getResponseHeaderFields, getUrl, toStringpublic List<GHKey> getKeys() throws IOException
IOException - the io exceptionpublic void follow()
throws IOException
IOException - the io exceptionpublic void unfollow()
throws IOException
IOException - the io exception@WithBridgeMethods(value=java.util.Set.class) public GHPersonSet<GHUser> getFollows() throws IOException
IOException - the io exceptionpublic PagedIterable<GHUser> listFollows()
@WithBridgeMethods(value=java.util.Set.class) public GHPersonSet<GHUser> getFollowers() throws IOException
IOException - the io exceptionpublic PagedIterable<GHUser> listFollowers()
public PagedIterable<GHRepository> listSubscriptions()
https://developer.github.com/v3/activity/watching/
public PagedIterable<GHRepository> listStarredRepositories()
public boolean isMemberOf(GHOrganization org)
org - the orgpublic boolean isMemberOf(GHTeam team)
team - the teampublic boolean isPublicMemberOf(GHOrganization org)
org - the org@WithBridgeMethods(value=java.util.Set.class) public GHPersonSet<GHOrganization> getOrganizations() throws IOException
IOException - the io exceptionpublic PagedIterable<GHEventInfo> listEvents() throws IOException
listEvents in class GHPersonIOException - the io exceptionpublic PagedIterable<GHGist> listGists() throws IOException
IOException - the io exceptionCopyright © 2020. All rights reserved.