|
|
@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Configuration
|
|
|
|
namespace MediaBrowser.Model.Configuration
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -25,6 +28,24 @@ namespace MediaBrowser.Model.Configuration
|
|
|
|
/// <value>The cache path.</value>
|
|
|
|
/// <value>The cache path.</value>
|
|
|
|
public string CachePath { get; set; }
|
|
|
|
public string CachePath { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Last known version that was ran using the configuration.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <value>The version from previous run.</value>
|
|
|
|
|
|
|
|
[XmlIgnore]
|
|
|
|
|
|
|
|
public Version PreviousVersion { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Stringified PreviousVersion to be stored/loaded,
|
|
|
|
|
|
|
|
/// because System.Version itself isn't xml-serializable
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <value>String value of PreviousVersion</value>
|
|
|
|
|
|
|
|
public string PreviousVersionStr
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get => PreviousVersion?.ToString();
|
|
|
|
|
|
|
|
set => PreviousVersion = Version.Parse(value);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="BaseApplicationConfiguration" /> class.
|
|
|
|
/// Initializes a new instance of the <see cref="BaseApplicationConfiguration" /> class.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|