CheckForUpdateResult.cs 955 B

123456789101112131415161718192021222324252627282930
  1. 
  2. namespace MediaBrowser.Model.Updates
  3. {
  4. /// <summary>
  5. /// Class CheckForUpdateResult
  6. /// </summary>
  7. public class CheckForUpdateResult
  8. {
  9. /// <summary>
  10. /// Gets or sets a value indicating whether this instance is update available.
  11. /// </summary>
  12. /// <value><c>true</c> if this instance is update available; otherwise, <c>false</c>.</value>
  13. public bool IsUpdateAvailable { get; set; }
  14. /// <summary>
  15. /// Gets or sets the available version.
  16. /// </summary>
  17. /// <value>The available version.</value>
  18. public string AvailableVersion
  19. {
  20. get { return Package != null ? Package.versionStr : "0.0.0.1"; }
  21. set { } // need this for the serializer
  22. }
  23. /// <summary>
  24. /// Get or sets package information for an available update
  25. /// </summary>
  26. public PackageVersionInfo Package { get; set; }
  27. }
  28. }