jellyfin/MediaBrowser.Model/Updates/CheckForUpdateResult.cs

31 lines
955 B
C#
Raw Normal View History

2014-06-29 19:59:52 +00:00

2013-02-22 04:23:06 +00:00
namespace MediaBrowser.Model.Updates
{
/// <summary>
/// Class CheckForUpdateResult
/// </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>
2014-06-29 19:59:52 +00:00
public string AvailableVersion
2013-02-28 19:29:17 +00:00
{
2014-06-29 19:59:52 +00:00
get { return Package != null ? Package.versionStr : "0.0.0.1"; }
2013-02-28 19:29:17 +00:00
set { } // need this for the serializer
}
/// <summary>
/// Get or sets package information for an available update
/// </summary>
public PackageVersionInfo Package { get; set; }
2013-02-22 04:23:06 +00:00
}
}