Package net.smoofyuniverse.ore.project
Class OreProject
java.lang.Object
net.smoofyuniverse.ore.project.OreProject
A project on Ore.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPage()Gets the URL of the project page.getVersions(OreAPI api) Gets the latest versions available.getVersions(OreAPI api, int offset, int limit) Gets the versions available.
-
Field Details
-
pluginId
The plugin ID. -
owner
The owner. -
name
The name.
-
-
Constructor Details
-
OreProject
Creates a project object.- Parameters:
pluginId- The plugin ID.
-
-
Method Details
-
getPage
Gets the URL of the project page.- Returns:
- The URL as a string.
-
getVersions
Gets the latest versions available.- Parameters:
api- The API.- Returns:
- The versions.
- Throws:
IOException- if an I/O error occurs.
-
getVersions
Gets the versions available.- Parameters:
api- The API.offset- The index of the first version to get. Sorted by creation date.limit- The maximum number of versions to get.- Returns:
- The versions.
- Throws:
IOException- if an I/O error occurs.
-