From 8adfb36f4cf76de33d5dadf894119816bd395b04 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Wed, 3 Apr 2013 14:18:36 -0400 Subject: [PATCH] Add targetSystem to PackageInfo --- MediaBrowser.Model/MediaBrowser.Model.csproj | 1 + MediaBrowser.Model/Updates/PackageInfo.cs | 13 +++++++++--- .../Updates/PackageTargetSystem.cs | 21 +++++++++++++++++++ MediaBrowser.sln | 3 --- 4 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 MediaBrowser.Model/Updates/PackageTargetSystem.cs diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index adbec288b..779fadf11 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -85,6 +85,7 @@ + diff --git a/MediaBrowser.Model/Updates/PackageInfo.cs b/MediaBrowser.Model/Updates/PackageInfo.cs index 18aa226ca..416769cf5 100644 --- a/MediaBrowser.Model/Updates/PackageInfo.cs +++ b/MediaBrowser.Model/Updates/PackageInfo.cs @@ -115,25 +115,32 @@ namespace MediaBrowser.Model.Updates [ProtoMember(15)] public float price { get; set; } + /// + /// Gets or sets the target system for this plug-in (Server, MBTheater, MBClassic). + /// + /// The target system. + [ProtoMember(16)] + public PackageTargetSystem targetSystem { get; set; } + /// /// Gets or sets whether or not this package is registered. /// /// True if registered. - [ProtoMember(16)] + [ProtoMember(17)] public bool isRegistered { get; set; } /// /// Gets or sets the expiration date for this package. /// /// Expiration Date. - [ProtoMember(17)] + [ProtoMember(18)] public DateTime expDate { get; set; } /// /// Gets or sets the versions. /// /// The versions. - [ProtoMember(18)] + [ProtoMember(19)] public List versions { get; set; } } } diff --git a/MediaBrowser.Model/Updates/PackageTargetSystem.cs b/MediaBrowser.Model/Updates/PackageTargetSystem.cs new file mode 100644 index 000000000..c80dddde3 --- /dev/null +++ b/MediaBrowser.Model/Updates/PackageTargetSystem.cs @@ -0,0 +1,21 @@ +namespace MediaBrowser.Model.Updates +{ + /// + /// Enum PackageType + /// + public enum PackageTargetSystem + { + /// + /// Server + /// + Server, + /// + /// MB Theater + /// + MBTheater, + /// + /// MB Classic + /// + MBClassic + } +} \ No newline at end of file diff --git a/MediaBrowser.sln b/MediaBrowser.sln index c3a809c3f..e5ccebc7b 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -205,7 +205,4 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(Performance) = preSolution - HasPerformanceSessions = true - EndGlobalSection EndGlobal