Class UserServiceEx


  • public class UserServiceEx
    extends org.eclipse.egit.github.core.service.UserService
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  UserServiceEx.Email  
    • Field Summary

      • Fields inherited from class org.eclipse.egit.github.core.service.GitHubService

        ACCEPT_FULL, ACCEPT_HTML, ACCEPT_RAW, ACCEPT_TEXT, client
    • Constructor Summary

      Constructors 
      Constructor Description
      UserServiceEx​(org.eclipse.egit.github.core.client.GitHubClient client)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      UserEx getUser()  
      List<UserServiceEx.Email> getUserEmails()
      UserService.getEmails() doesn't work, because it expect that GitHub returns list of strings, but it returns list of email objects: [ { "email": "octocat@github.com", "verified": true, "primary": true, "visibility": "public" } ]
      • Methods inherited from class org.eclipse.egit.github.core.service.UserService

        addEmail, createFollowersRequest, createFollowingRequest, createKey, deleteKey, editKey, editUser, follow, getEmails, getFollowers, getFollowers, getFollowing, getFollowing, getKey, getKeys, getUser, isFollowing, pageFollowers, pageFollowers, pageFollowers, pageFollowers, pageFollowers, pageFollowers, pageFollowing, pageFollowing, pageFollowing, pageFollowing, pageFollowing, pageFollowing, removeEmail, unfollow
      • Methods inherited from class org.eclipse.egit.github.core.service.GitHubService

        check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepository
    • Constructor Detail

      • UserServiceEx

        public UserServiceEx​(org.eclipse.egit.github.core.client.GitHubClient client)
    • Method Detail

      • getUserEmails

        public List<UserServiceEx.Email> getUserEmails()
                                                throws IOException
        UserService.getEmails() doesn't work, because it expect that GitHub returns list of strings, but it returns list of email objects: [ { "email": "octocat@github.com", "verified": true, "primary": true, "visibility": "public" } ]
        Throws:
        IOException
      • getUser

        public UserEx getUser()
                       throws IOException
        Overrides:
        getUser in class org.eclipse.egit.github.core.service.UserService
        Throws:
        IOException