org.kohsuke.github
Class GHUser

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

public class GHUser
extends java.lang.Object

Represents an user of GitHub.

Author:
Kohsuke Kawaguchi

Constructor Summary
GHUser()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 void follow()
          Follow this user.
 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.lang.String getCreatedAt()
           
 java.lang.String getEmail()
          Gets the e-mail address of the user.
 java.util.Set<GHUser> getFollowers()
          Lists the users who are following this user.
 int getFollowersCount()
           
 int getFollowingCount()
           
 java.util.Set<GHUser> getFollows()
          Lists the users that this user is following
 java.lang.String getGravatarId()
          Gravatar ID of this user, like 0cb9832a01c22c083390f3c5dcb64105
 int getId()
          What appears to be a GitHub internal unique number that identifies this user.
 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 repositories this user owns.
 GHRepository getRepository(java.lang.String name)
           
 int hashCode()
           
 java.lang.String toString()
           
 void unfollow()
          Unfollow this user.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GHUser

public GHUser()
Method Detail

getGravatarId

public java.lang.String getGravatarId()
Gravatar ID of this user, like 0cb9832a01c22c083390f3c5dcb64105


getName

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


getCompany

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


getLocation

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


getCreatedAt

public java.lang.String getCreatedAt()

getBlog

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


getLogin

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


getEmail

public java.lang.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()

getRepositories

public java.util.Map<java.lang.String,GHRepository> getRepositories()
                                                             throws java.io.IOException
Gets the repositories this user owns.

Throws:
java.io.IOException

getRepository

public GHRepository getRepository(java.lang.String name)
                           throws java.io.IOException
Throws:
java.io.IOException

follow

public void follow()
            throws java.io.IOException
Follow this user.

Throws:
java.io.IOException

unfollow

public void unfollow()
              throws java.io.IOException
Unfollow this user.

Throws:
java.io.IOException

getFollows

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

Throws:
java.io.IOException

getFollowers

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

Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010. All Rights Reserved.