Interface UserOperations
-
- All Known Implementing Classes:
UserTemplate
public interface UserOperationsInterface defining the operations for working with GitHub users.- Author:
- Willie Wheeler (willie.wheeler@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<GitHubUser>getFollowers(String user)Public operation to return a given user's followers.List<GitHubUser>getFollowing(String user)Public operation to return the users that a given user is following.StringgetProfileId()Retrieves the user's GitHub profile ID.StringgetProfileUrl()Retrieve the URL to the user's GitHub profile.GitHubUserProfilegetUserProfile()Retrieves the user's GitHub profile details.
-
-
-
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
-
-