Class GHUser

    • Constructor Detail

      • GHUser

        public GHUser()
    • Method Detail

      • unfollow

        public void unfollow()
                      throws IOException
        Unfollow this user.
        Throws:
        IOException - the io exception
      • listFollows

        public PagedIterable<GHUser> listFollows()
        Lists the users that this user is following
        Returns:
        the paged iterable
      • listFollowers

        public PagedIterable<GHUser> listFollowers()
        Lists the users who are following this user.
        Returns:
        the paged iterable
      • listSubscriptions

        public PagedIterable<GHRepository> listSubscriptions()
        Lists all the subscribed (aka watched) repositories.

        https://developer.github.com/v3/activity/watching/

        Returns:
        the paged iterable
      • listStarredRepositories

        public PagedIterable<GHRepository> listStarredRepositories()
        Lists all the repositories that this user has starred.
        Returns:
        the paged iterable
      • isMemberOf

        public boolean isMemberOf​(GHOrganization org)
        Returns true if this user belongs to the specified organization.
        Parameters:
        org - the org
        Returns:
        the boolean
      • isMemberOf

        public boolean isMemberOf​(GHTeam team)
        Returns true if this user belongs to the specified team.
        Parameters:
        team - the team
        Returns:
        the boolean
      • isPublicMemberOf

        public boolean isPublicMemberOf​(GHOrganization org)
        Returns true if this user belongs to the specified organization as a public member.
        Parameters:
        org - the org
        Returns:
        the boolean
      • isHireable

        public boolean isHireable()
        Returns true if this user is marked as hireable, false otherwise
        Returns:
        if the user is marked as hireable
      • getBio

        public String getBio()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object