org.kohsuke.github
Class GHUser

java.lang.Object
  extended by org.kohsuke.github.GHPerson
      extended by org.kohsuke.github.GHUser

public class GHUser
extends GHPerson

Represents an user of GitHub.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.kohsuke.github.GHPerson
following_count, gravatar_id, id, login, public_gist_count, public_repo_count
 
Constructor Summary
GHUser()
           
 
Method Summary
 boolean equals(Object obj)
           
 void follow()
          Follow this user.
 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.
 Set<GHUser> getFollowers()
          Lists the users who are following this user.
 int getFollowersCount()
           
 int getFollowingCount()
           
 Set<GHUser> getFollows()
          Lists the users that this user is following
 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()
           
 int hashCode()
           
 String toString()
           
 void unfollow()
          Unfollow this user.
 
Methods inherited from class org.kohsuke.github.GHPerson
fetchRepository, getGravatarId, getRepositories, getRepository, refreshRepository
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GHUser

public GHUser()
Method Detail

getName

public String getName()
Gets the human-readable name of the user, like "Kohsuke Kawaguchi"


getCompany

public String getCompany()
Gets the company name of this user, like "Sun Microsystems, Inc."


getLocation

public String getLocation()
Gets the location of this user, like "Santa Clara, California"


getCreatedAt

public String getCreatedAt()

getBlog

public String getBlog()
Gets the blog URL of this user.


getLogin

public String getLogin()
Gets the login ID of this user, like 'kohsuke'

Overrides:
getLogin in class GHPerson

getEmail

public String getEmail()
Gets the e-mail address of the user.


getPublicGistCount

public int getPublicGistCount()

getPublicRepoCount

public int getPublicRepoCount()

getFollowingCount

public int getFollowingCount()

getId

public int getId()
What appears to be a GitHub internal unique number that identifies this user.


getFollowersCount

public int getFollowersCount()

follow

public void follow()
            throws IOException
Follow this user.

Throws:
IOException

unfollow

public void unfollow()
              throws IOException
Unfollow this user.

Throws:
IOException

getFollows

public Set<GHUser> getFollows()
                       throws IOException
Lists the users that this user is following

Throws:
IOException

getFollowers

public Set<GHUser> getFollowers()
                         throws IOException
Lists the users who are following this user.

Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.