aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Updates/CheckForUpdateResult.cs
blob: c9bc2d6b9d88ac171573f9966169b29fa3b1dd3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;

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>
        public Version AvailableVersion
        {
            get { return Package != null ? Package.version : new Version(0, 0); }
            set { } // need this for the serializer
        }

        /// <summary>
        /// Get or sets package information for an available update
        /// </summary>
        public PackageVersionInfo Package { get; set; }
    }
}