Class VersionFetchResult

java.lang.Object
ml.karmaconfigs.api.common.version.VersionFetchResult

public class VersionFetchResult extends Object
Karma version updater version fetch result
  • 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 source
      latest_version - the latest version
      downloadURL - the download url
      changes - the changelog
      solver - the version resolver
  • Method Details

    • isUpdated

      public boolean isUpdated()
      Get if the source is updated
      Returns:
      if the source is updated
    • getLatest

      public String getLatest()
      Get the source last version
      Returns:
      the source last version
    • getCurrent

      public String getCurrent()
      Get the source current version
      Returns:
      the source current version
    • getUpdateURL

      public String getUpdateURL()
      Get the source update URL
      Returns:
      the source update URL
    • resolve

      public String resolve(VersionType type)
      Resolve the version
      Parameters:
      type - the version type
      Returns:
      the solved version
    • getChangelog

      public String[] getChangelog()
      Get the version changelog
      Returns:
      the version changelog