public interface Profile
This interface represents an abstraction of a list of the NuGet packages
that the specified organization has released.
The maximum list of packages that NuGet.org returns at once is 20. If the organization has released more packages than that, the page contains a link to the next page.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the relative URL of the next page if it exists.static Profile
Returns the new profile object with the specified package list and next page URL.Returns the list of the NuGet packages.
-
Method Details
-
packageList
Returns the list of the NuGet packages.- Returns:
- The list of the NuGet packages.
-
nextPageUrl
Returns the relative URL of the next page if it exists.Note that the relative URL that NuGet.org returns is an absolute URL path beginning with a slash (
/
).- Returns:
- The URL of the next page. Or
Optional.empty()
if it does not exist.
-
of
Returns the new profile object with the specified package list and next page URL.Note that the object that this method returns is immutable.
- Parameters:
packageList
- The package list.nextPageUrl
- The URL of the next page.- Returns:
- The new profile object.
-