CheckForUpdateResult.cs 940 B

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