Class VersionFetchResult
java.lang.Object
ml.karmaconfigs.api.common.version.VersionFetchResult
Karma version updater version fetch result
-
Constructor Summary
ConstructorsConstructorDescriptionVersionFetchResult(KarmaSource source, String latest_version, String downloadURL, String[] changes, VersionResolver solver)Initialize a new version fetch result -
Method Summary
Modifier and TypeMethodDescriptionString[]Get the version changelogGet the source current versionGet the source last versionGet the source update URLbooleanGet if the source is updatedresolve(VersionType type)Resolve the version
-
Constructor Details
-
VersionFetchResult
public VersionFetchResult(KarmaSource source, String latest_version, String downloadURL, String[] changes, VersionResolver solver)Initialize a new version fetch result- Parameters:
source- the sourcelatest_version- the latest versiondownloadURL- the download urlchanges- the changelogsolver- the version resolver
-
-
Method Details
-
isUpdated
public boolean isUpdated()Get if the source is updated- Returns:
- if the source is updated
-
getLatest
Get the source last version- Returns:
- the source last version
-
getCurrent
Get the source current version- Returns:
- the source current version
-
getUpdateURL
Get the source update URL- Returns:
- the source update URL
-
resolve
Resolve the version- Parameters:
type- the version type- Returns:
- the solved version
-
getChangelog
Get the version changelog- Returns:
- the version changelog
-