parent
557b165f01
commit
974a04c129
@ -1,23 +0,0 @@
|
||||
namespace MediaBrowser.Model.Updates
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum PackageType.
|
||||
/// </summary>
|
||||
public enum PackageTargetSystem
|
||||
{
|
||||
/// <summary>
|
||||
/// Server.
|
||||
/// </summary>
|
||||
Server,
|
||||
|
||||
/// <summary>
|
||||
/// MB Theater.
|
||||
/// </summary>
|
||||
MBTheater,
|
||||
|
||||
/// <summary>
|
||||
/// MB Classic.
|
||||
/// </summary>
|
||||
MBClassic
|
||||
}
|
||||
}
|
@ -1,97 +0,0 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Updates
|
||||
{
|
||||
/// <summary>
|
||||
/// Class PackageVersionInfo.
|
||||
/// </summary>
|
||||
public class PackageVersionInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the guid.
|
||||
/// </summary>
|
||||
/// <value>The guid.</value>
|
||||
public string guid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the version STR.
|
||||
/// </summary>
|
||||
/// <value>The version STR.</value>
|
||||
public string versionStr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The _version
|
||||
/// </summary>
|
||||
private Version _version;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the version.
|
||||
/// Had to make this an interpreted property since Protobuf can't handle Version
|
||||
/// </summary>
|
||||
/// <value>The version.</value>
|
||||
[JsonIgnore]
|
||||
public Version Version
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_version == null)
|
||||
{
|
||||
var ver = versionStr;
|
||||
_version = new Version(string.IsNullOrEmpty(ver) ? "0.0.0.1" : ver);
|
||||
}
|
||||
|
||||
return _version;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the classification.
|
||||
/// </summary>
|
||||
/// <value>The classification.</value>
|
||||
public PackageVersionClass classification { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the description.
|
||||
/// </summary>
|
||||
/// <value>The description.</value>
|
||||
public string description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the required version STR.
|
||||
/// </summary>
|
||||
/// <value>The required version STR.</value>
|
||||
public string requiredVersionStr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the source URL.
|
||||
/// </summary>
|
||||
/// <value>The source URL.</value>
|
||||
public string sourceUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the source URL.
|
||||
/// </summary>
|
||||
/// <value>The source URL.</value>
|
||||
public string checksum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the target filename.
|
||||
/// </summary>
|
||||
/// <value>The target filename.</value>
|
||||
public string targetFilename { get; set; }
|
||||
|
||||
public string infoUrl { get; set; }
|
||||
|
||||
public string runtimes { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable SA1600
|
||||
|
||||
using System;
|
||||
|
||||
namespace MediaBrowser.Model.Updates
|
||||
{
|
||||
/// <summary>
|
||||
/// Class PackageVersionInfo.
|
||||
/// </summary>
|
||||
public class VersionInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the guid.
|
||||
/// </summary>
|
||||
/// <value>The guid.</value>
|
||||
public string guid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the version string.
|
||||
/// </summary>
|
||||
/// <value>The version string.</value>
|
||||
public string versionString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the version.
|
||||
/// </summary>
|
||||
/// <value>The version.</value>
|
||||
public Version versionCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the release channel.
|
||||
/// </summary>
|
||||
/// <value>The release channel for a given package version.</value>
|
||||
public ReleaseChannel channel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the description.
|
||||
/// </summary>
|
||||
/// <value>The description.</value>
|
||||
public string description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the minimum required version for the server.
|
||||
/// </summary>
|
||||
/// <value>The minimum required version.</value>
|
||||
public string minimumServerVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the source URL.
|
||||
/// </summary>
|
||||
/// <value>The source URL.</value>
|
||||
public string sourceUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a checksum for the binary.
|
||||
/// </summary>
|
||||
/// <value>The checksum.</value>
|
||||
public string checksum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the target filename for the downloaded binary.
|
||||
/// </summary>
|
||||
/// <value>The target filename.</value>
|
||||
public string filename { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in new issue