namespace MediaBrowser.Model.Updates
{
    /// 
    /// Class CheckForUpdateResult
    /// 
    public class CheckForUpdateResult
    {
        /// 
        /// Gets or sets a value indicating whether this instance is update available.
        /// 
        /// true if this instance is update available; otherwise, false.
        public bool IsUpdateAvailable { get; set; }
        /// 
        /// Gets or sets the available version.
        /// 
        /// The available version.
        public string AvailableVersion
        {
            get { return Package != null ? Package.versionStr : "0.0.0.1"; }
            set { } // need this for the serializer
        }
        /// 
        /// Get or sets package information for an available update
        /// 
        public PackageVersionInfo Package { get; set; }
    }
}