org.kohsuke.github
Class GHMyself

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

public class GHMyself
extends GHUser

Represents the account that's logging into GitHub.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from class org.kohsuke.github.GHPerson
avatar_url, blog, company, created_at, email, followers, followers_count, following, following_count, gravatar_id, html_url, id, location, login, name, public_gist_count, public_gists, public_repo_count, public_repos
 
Constructor Summary
GHMyself()
           
 
Method Summary
 List<String> getEmails()
          Returns the read-only list of e-mail addresses configured for you.
 
Methods inherited from class org.kohsuke.github.GHUser
equals, follow, getFollowers, getFollows, getOrganizations, hashCode, toString, unfollow
 
Methods inherited from class org.kohsuke.github.GHPerson
getBlog, getCompany, getCreatedAt, getEmail, getFollowersCount, getFollowingCount, getGravatarId, getId, getLocation, getLogin, getName, getPublicGistCount, getPublicRepoCount, getRepositories, getRepository
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GHMyself

public GHMyself()
Method Detail

getEmails

public List<String> getEmails()
                       throws IOException
Returns the read-only list of e-mail addresses configured for you. This corresponds to the stuff you configure in https://github.com/settings/emails, and not to be confused with GHPerson.getEmail() that shows your public e-mail address set in https://github.com/settings/profile

Returns:
Always non-null.
Throws:
IOException


Copyright © 2012. All Rights Reserved.