2018-12-27 23:27:57 +00:00
|
|
|
namespace MediaBrowser.Model.Updates
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-02-04 00:49:27 +00:00
|
|
|
/// Class CheckForUpdateResult.
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
|
|
|
public class CheckForUpdateResult
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether this instance is update available.
|
|
|
|
/// </summary>
|
|
|
|
/// <value><c>true</c> if this instance is update available; otherwise, <c>false</c>.</value>
|
|
|
|
public bool IsUpdateAvailable { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the available version.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The available version.</value>
|
|
|
|
public string AvailableVersion
|
|
|
|
{
|
2020-02-25 16:58:39 +00:00
|
|
|
get => Package != null ? Package.versionString : "0.0.0.1";
|
2018-12-27 23:27:57 +00:00
|
|
|
set { } // need this for the serializer
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Get or sets package information for an available update
|
|
|
|
/// </summary>
|
2020-02-25 16:58:39 +00:00
|
|
|
public VersionInfo Package { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|