Interface UserOperations

  • All Known Implementing Classes:
    UserTemplate

    public interface UserOperations
    Interface defining the operations for working with GitHub users.
    Author:
    Willie Wheeler (willie.wheeler@gmail.com)
    • Method Detail

      • getProfileId

        String getProfileId()
        Retrieves the user's GitHub profile ID.
        Returns:
        the user's GitHub profile ID.
      • getUserProfile

        GitHubUserProfile getUserProfile()
        Retrieves the user's GitHub profile details.
        Returns:
        the user's GitHub profile
      • getProfileUrl

        String getProfileUrl()
        Retrieve the URL to the user's GitHub profile.
        Returns:
        the URL to the user's GitHub profile.
      • getFollowers

        List<GitHubUser> getFollowers​(String user)
        Public operation to return a given user's followers.
        Parameters:
        user - GitHub user
        Returns:
        list of followers
      • getFollowing

        List<GitHubUser> getFollowing​(String user)
        Public operation to return the users that a given user is following.
        Parameters:
        user - GitHub user
        Returns:
        list of users the given user is following