From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- MediaBrowser.Model/Updates/CheckForUpdateResult.cs | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 MediaBrowser.Model/Updates/CheckForUpdateResult.cs (limited to 'MediaBrowser.Model/Updates/CheckForUpdateResult.cs') diff --git a/MediaBrowser.Model/Updates/CheckForUpdateResult.cs b/MediaBrowser.Model/Updates/CheckForUpdateResult.cs new file mode 100644 index 000000000..ff0bba197 --- /dev/null +++ b/MediaBrowser.Model/Updates/CheckForUpdateResult.cs @@ -0,0 +1,30 @@ + +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; } + } +} -- cgit v1.2.3