aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Updates/VersionInfo.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-11-21 23:28:15 -0500
committerGitHub <noreply@github.com>2020-11-21 23:28:15 -0500
commit2c9e355e428e1498d4dc3bce844917a1a0333284 (patch)
tree003df6bc0da24bdddeefc8366120cb4d20fc6933 /MediaBrowser.Model/Updates/VersionInfo.cs
parentdc1ad3fe2aa1061157b037f1e986b590e4027953 (diff)
parentc1db8869f06105b13f93f15d12061ada523dbb78 (diff)
Merge branch 'master' into NetworkPR2
Diffstat (limited to 'MediaBrowser.Model/Updates/VersionInfo.cs')
-rw-r--r--MediaBrowser.Model/Updates/VersionInfo.cs30
1 files changed, 29 insertions, 1 deletions
diff --git a/MediaBrowser.Model/Updates/VersionInfo.cs b/MediaBrowser.Model/Updates/VersionInfo.cs
index a4aa0e75f..844170999 100644
--- a/MediaBrowser.Model/Updates/VersionInfo.cs
+++ b/MediaBrowser.Model/Updates/VersionInfo.cs
@@ -9,11 +9,29 @@ namespace MediaBrowser.Model.Updates
/// </summary>
public class VersionInfo
{
+ private Version _version;
+
/// <summary>
/// Gets or sets the version.
/// </summary>
/// <value>The version.</value>
- public string version { get; set; }
+ public string version
+ {
+ get
+ {
+ return _version == null ? string.Empty : _version.ToString();
+ }
+
+ set
+ {
+ _version = Version.Parse(value);
+ }
+ }
+
+ /// <summary>
+ /// Gets the version as a <see cref="Version"/>.
+ /// </summary>
+ public Version VersionNumber => _version;
/// <summary>
/// Gets or sets the changelog for this version.
@@ -44,5 +62,15 @@ namespace MediaBrowser.Model.Updates
/// </summary>
/// <value>The timestamp.</value>
public string timestamp { get; set; }
+
+ /// <summary>
+ /// Gets or sets the repository name.
+ /// </summary>
+ public string repositoryName { get; set; }
+
+ /// <summary>
+ /// Gets or sets the repository url.
+ /// </summary>
+ public string repositoryUrl { get; set; }
}
}