removed unused attributes

pull/702/head
Luke Pulverenti 11 years ago
parent 48d60b2f6a
commit 32bc545a85

@ -1,5 +1,4 @@
using ProtoBuf; using System;
using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;
namespace MediaBrowser.Controller.Entities namespace MediaBrowser.Controller.Entities
@ -7,14 +6,12 @@ namespace MediaBrowser.Controller.Entities
/// <summary> /// <summary>
/// Class UserItemData /// Class UserItemData
/// </summary> /// </summary>
[ProtoContract]
public class UserItemData public class UserItemData
{ {
/// <summary> /// <summary>
/// Gets or sets the user id. /// Gets or sets the user id.
/// </summary> /// </summary>
/// <value>The user id.</value> /// <value>The user id.</value>
[ProtoMember(1)]
public Guid UserId { get; set; } public Guid UserId { get; set; }
/// <summary> /// <summary>
@ -27,7 +24,6 @@ namespace MediaBrowser.Controller.Entities
/// <value>The rating.</value> /// <value>The rating.</value>
/// <exception cref="System.ArgumentOutOfRangeException">A 0-10 rating is required for UserItemData.</exception> /// <exception cref="System.ArgumentOutOfRangeException">A 0-10 rating is required for UserItemData.</exception>
/// <exception cref="System.InvalidOperationException">A 0-10 rating is required for UserItemData.</exception> /// <exception cref="System.InvalidOperationException">A 0-10 rating is required for UserItemData.</exception>
[ProtoMember(2)]
public float? Rating public float? Rating
{ {
get get
@ -52,35 +48,30 @@ namespace MediaBrowser.Controller.Entities
/// Gets or sets the playback position ticks. /// Gets or sets the playback position ticks.
/// </summary> /// </summary>
/// <value>The playback position ticks.</value> /// <value>The playback position ticks.</value>
[ProtoMember(3)]
public long PlaybackPositionTicks { get; set; } public long PlaybackPositionTicks { get; set; }
/// <summary> /// <summary>
/// Gets or sets the play count. /// Gets or sets the play count.
/// </summary> /// </summary>
/// <value>The play count.</value> /// <value>The play count.</value>
[ProtoMember(4)]
public int PlayCount { get; set; } public int PlayCount { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is favorite. /// Gets or sets a value indicating whether this instance is favorite.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is favorite; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is favorite; otherwise, <c>false</c>.</value>
[ProtoMember(5)]
public bool IsFavorite { get; set; } public bool IsFavorite { get; set; }
/// <summary> /// <summary>
/// Gets or sets the last played date. /// Gets or sets the last played date.
/// </summary> /// </summary>
/// <value>The last played date.</value> /// <value>The last played date.</value>
[ProtoMember(6)]
public DateTime? LastPlayedDate { get; set; } public DateTime? LastPlayedDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this <see cref="UserItemData" /> is played. /// Gets or sets a value indicating whether this <see cref="UserItemData" /> is played.
/// </summary> /// </summary>
/// <value><c>true</c> if played; otherwise, <c>false</c>.</value> /// <value><c>true</c> if played; otherwise, <c>false</c>.</value>
[ProtoMember(7)]
public bool Played { get; set; } public bool Played { get; set; }
/// <summary> /// <summary>

@ -53,9 +53,6 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="protobuf-net">
<HintPath>..\packages\protobuf-net.2.0.0.621\lib\net40\protobuf-net.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
@ -199,9 +196,6 @@
<Name>MediaBrowser.Model</Name> <Name>MediaBrowser.Model</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>if $(ConfigurationName) == Release ( <PostBuildEvent>if $(ConfigurationName) == Release (

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="protobuf-net" version="2.0.0.621" targetFramework="net45" />
</packages>

@ -1,5 +1,4 @@
using MediaBrowser.Model.Updates; using MediaBrowser.Model.Updates;
using ProtoBuf;
namespace MediaBrowser.Model.Configuration namespace MediaBrowser.Model.Configuration
{ {
@ -8,48 +7,41 @@ namespace MediaBrowser.Model.Configuration
/// ProtoInclude tells Protobuf about subclasses, /// ProtoInclude tells Protobuf about subclasses,
/// The number 50 can be any number, so long as it doesn't clash with any of the ProtoMember numbers either here or in subclasses. /// The number 50 can be any number, so long as it doesn't clash with any of the ProtoMember numbers either here or in subclasses.
/// </summary> /// </summary>
[ProtoContract, ProtoInclude(965, typeof(ServerConfiguration))]
public class BaseApplicationConfiguration public class BaseApplicationConfiguration
{ {
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [enable debug level logging]. /// Gets or sets a value indicating whether [enable debug level logging].
/// </summary> /// </summary>
/// <value><c>true</c> if [enable debug level logging]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [enable debug level logging]; otherwise, <c>false</c>.</value>
[ProtoMember(1)]
public bool EnableDebugLevelLogging { get; set; } public bool EnableDebugLevelLogging { get; set; }
/// <summary> /// <summary>
/// Enable automatically and silently updating of the application /// Enable automatically and silently updating of the application
/// </summary> /// </summary>
/// <value><c>true</c> if [enable auto update]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [enable auto update]; otherwise, <c>false</c>.</value>
[ProtoMember(3)]
public bool EnableAutoUpdate { get; set; } public bool EnableAutoUpdate { get; set; }
/// <summary> /// <summary>
/// Gets of sets a value indicating the level of system updates (Release, Beta, Dev) /// Gets of sets a value indicating the level of system updates (Release, Beta, Dev)
/// </summary> /// </summary>
[ProtoMember(60)]
public PackageVersionClass SystemUpdateLevel { get; set; } public PackageVersionClass SystemUpdateLevel { get; set; }
/// <summary> /// <summary>
/// The number of days we should retain log files /// The number of days we should retain log files
/// </summary> /// </summary>
/// <value>The log file retention days.</value> /// <value>The log file retention days.</value>
[ProtoMember(5)]
public int LogFileRetentionDays { get; set; } public int LogFileRetentionDays { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [run at startup]. /// Gets or sets a value indicating whether [run at startup].
/// </summary> /// </summary>
/// <value><c>true</c> if [run at startup]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [run at startup]; otherwise, <c>false</c>.</value>
[ProtoMember(58)]
public bool RunAtStartup { get; set; } public bool RunAtStartup { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is first run. /// Gets or sets a value indicating whether this instance is first run.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is first run; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is first run; otherwise, <c>false</c>.</value>
[ProtoMember(4)]
public bool IsStartupWizardCompleted { get; set; } public bool IsStartupWizardCompleted { get; set; }
/// <summary> /// <summary>

@ -1,6 +1,5 @@
using MediaBrowser.Model.Entities; using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Weather; using MediaBrowser.Model.Weather;
using ProtoBuf;
using System; using System;
namespace MediaBrowser.Model.Configuration namespace MediaBrowser.Model.Configuration
@ -8,212 +7,181 @@ namespace MediaBrowser.Model.Configuration
/// <summary> /// <summary>
/// Represents the server configuration. /// Represents the server configuration.
/// </summary> /// </summary>
[ProtoContract]
public class ServerConfiguration : BaseApplicationConfiguration public class ServerConfiguration : BaseApplicationConfiguration
{ {
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [enable HTTP level logging]. /// Gets or sets a value indicating whether [enable HTTP level logging].
/// </summary> /// </summary>
/// <value><c>true</c> if [enable HTTP level logging]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [enable HTTP level logging]; otherwise, <c>false</c>.</value>
[ProtoMember(56)]
public bool EnableHttpLevelLogging { get; set; } public bool EnableHttpLevelLogging { get; set; }
/// <summary> /// <summary>
/// Gets or sets the HTTP server port number. /// Gets or sets the HTTP server port number.
/// </summary> /// </summary>
/// <value>The HTTP server port number.</value> /// <value>The HTTP server port number.</value>
[ProtoMember(2)]
public int HttpServerPortNumber { get; set; } public int HttpServerPortNumber { get; set; }
/// <summary> /// <summary>
/// Gets or sets the legacy web socket port number. /// Gets or sets the legacy web socket port number.
/// </summary> /// </summary>
/// <value>The legacy web socket port number.</value> /// <value>The legacy web socket port number.</value>
[ProtoMember(59)]
public int LegacyWebSocketPortNumber { get; set; } public int LegacyWebSocketPortNumber { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [enable internet providers]. /// Gets or sets a value indicating whether [enable internet providers].
/// </summary> /// </summary>
/// <value><c>true</c> if [enable internet providers]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [enable internet providers]; otherwise, <c>false</c>.</value>
[ProtoMember(6)]
public bool EnableInternetProviders { get; set; } public bool EnableInternetProviders { get; set; }
/// <summary> /// <summary>
/// Gets or sets the zip code to use when displaying weather /// Gets or sets the zip code to use when displaying weather
/// </summary> /// </summary>
/// <value>The weather location.</value> /// <value>The weather location.</value>
[ProtoMember(7)]
public string WeatherLocation { get; set; } public string WeatherLocation { get; set; }
/// <summary> /// <summary>
/// Gets or sets the weather unit to use when displaying weather /// Gets or sets the weather unit to use when displaying weather
/// </summary> /// </summary>
/// <value>The weather unit.</value> /// <value>The weather unit.</value>
[ProtoMember(8)]
public WeatherUnits WeatherUnit { get; set; } public WeatherUnits WeatherUnit { get; set; }
/// <summary> /// <summary>
/// Gets or sets the metadata refresh days. /// Gets or sets the metadata refresh days.
/// </summary> /// </summary>
/// <value>The metadata refresh days.</value> /// <value>The metadata refresh days.</value>
[ProtoMember(9)]
public int MetadataRefreshDays { get; set; } public int MetadataRefreshDays { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [save local meta]. /// Gets or sets a value indicating whether [save local meta].
/// </summary> /// </summary>
/// <value><c>true</c> if [save local meta]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [save local meta]; otherwise, <c>false</c>.</value>
[ProtoMember(10)]
public bool SaveLocalMeta { get; set; } public bool SaveLocalMeta { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [refresh item images]. /// Gets or sets a value indicating whether [refresh item images].
/// </summary> /// </summary>
/// <value><c>true</c> if [refresh item images]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [refresh item images]; otherwise, <c>false</c>.</value>
[ProtoMember(11)]
public bool RefreshItemImages { get; set; } public bool RefreshItemImages { get; set; }
/// <summary> /// <summary>
/// Gets or sets the preferred metadata language. /// Gets or sets the preferred metadata language.
/// </summary> /// </summary>
/// <value>The preferred metadata language.</value> /// <value>The preferred metadata language.</value>
[ProtoMember(12)]
public string PreferredMetadataLanguage { get; set; } public string PreferredMetadataLanguage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the metadata country code. /// Gets or sets the metadata country code.
/// </summary> /// </summary>
/// <value>The metadata country code.</value> /// <value>The metadata country code.</value>
[ProtoMember(13)]
public string MetadataCountryCode { get; set; } public string MetadataCountryCode { get; set; }
/// <summary> /// <summary>
/// Gets or sets the size of the TMDB fetched poster. /// Gets or sets the size of the TMDB fetched poster.
/// </summary> /// </summary>
/// <value>The size of the TMDB fetched poster.</value> /// <value>The size of the TMDB fetched poster.</value>
[ProtoMember(14)]
public string TmdbFetchedPosterSize { get; set; } public string TmdbFetchedPosterSize { get; set; }
/// <summary> /// <summary>
/// Gets or sets the size of the TMDB fetched profile. /// Gets or sets the size of the TMDB fetched profile.
/// </summary> /// </summary>
/// <value>The size of the TMDB fetched profile.</value> /// <value>The size of the TMDB fetched profile.</value>
[ProtoMember(15)]
public string TmdbFetchedProfileSize { get; set; } public string TmdbFetchedProfileSize { get; set; }
/// <summary> /// <summary>
/// Gets or sets the size of the TMDB fetched backdrop. /// Gets or sets the size of the TMDB fetched backdrop.
/// </summary> /// </summary>
/// <value>The size of the TMDB fetched backdrop.</value> /// <value>The size of the TMDB fetched backdrop.</value>
[ProtoMember(16)]
public string TmdbFetchedBackdropSize { get; set; } public string TmdbFetchedBackdropSize { get; set; }
/// <summary> /// <summary>
/// Gets or sets the max backdrops. /// Gets or sets the max backdrops.
/// </summary> /// </summary>
/// <value>The max backdrops.</value> /// <value>The max backdrops.</value>
[ProtoMember(17)]
public int MaxBackdrops { get; set; } public int MaxBackdrops { get; set; }
/// <summary> /// <summary>
/// Options for specific art to download for movies. /// Options for specific art to download for movies.
/// </summary> /// </summary>
[ProtoMember(40)]
public ImageDownloadOptions DownloadMovieImages { get; set; } public ImageDownloadOptions DownloadMovieImages { get; set; }
/// <summary> /// <summary>
/// Options for specific art to download for Series. /// Options for specific art to download for Series.
/// </summary> /// </summary>
[ProtoMember(41)]
public ImageDownloadOptions DownloadSeriesImages { get; set; } public ImageDownloadOptions DownloadSeriesImages { get; set; }
/// <summary> /// <summary>
/// Options for specific art to download for Seasons. /// Options for specific art to download for Seasons.
/// </summary> /// </summary>
[ProtoMember(42)]
public ImageDownloadOptions DownloadSeasonImages { get; set; } public ImageDownloadOptions DownloadSeasonImages { get; set; }
/// <summary> /// <summary>
/// Options for specific art to download for MusicArtists. /// Options for specific art to download for MusicArtists.
/// </summary> /// </summary>
[ProtoMember(43)]
public ImageDownloadOptions DownloadMusicArtistImages { get; set; } public ImageDownloadOptions DownloadMusicArtistImages { get; set; }
/// <summary> /// <summary>
/// Options for specific art to download for MusicAlbums. /// Options for specific art to download for MusicAlbums.
/// </summary> /// </summary>
[ProtoMember(44)]
public ImageDownloadOptions DownloadMusicAlbumImages { get; set; } public ImageDownloadOptions DownloadMusicAlbumImages { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [download TV season backdrops]. /// Gets or sets a value indicating whether [download TV season backdrops].
/// </summary> /// </summary>
/// <value><c>true</c> if [download TV season banner]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [download TV season banner]; otherwise, <c>false</c>.</value>
[ProtoMember(52)]
public bool DownloadHDFanArt { get; set; } public bool DownloadHDFanArt { get; set; }
/// <summary> /// <summary>
/// Characters to be replaced with a ' ' in strings to create a sort name /// Characters to be replaced with a ' ' in strings to create a sort name
/// </summary> /// </summary>
/// <value>The sort replace characters.</value> /// <value>The sort replace characters.</value>
[ProtoMember(27)]
public string[] SortReplaceCharacters { get; set; } public string[] SortReplaceCharacters { get; set; }
/// <summary> /// <summary>
/// Characters to be removed from strings to create a sort name /// Characters to be removed from strings to create a sort name
/// </summary> /// </summary>
/// <value>The sort remove characters.</value> /// <value>The sort remove characters.</value>
[ProtoMember(28)]
public string[] SortRemoveCharacters { get; set; } public string[] SortRemoveCharacters { get; set; }
/// <summary> /// <summary>
/// Words to be removed from strings to create a sort name /// Words to be removed from strings to create a sort name
/// </summary> /// </summary>
/// <value>The sort remove words.</value> /// <value>The sort remove words.</value>
[ProtoMember(29)]
public string[] SortRemoveWords { get; set; } public string[] SortRemoveWords { get; set; }
/// <summary> /// <summary>
/// Show an output log window for debugging /// Show an output log window for debugging
/// </summary> /// </summary>
/// <value><c>true</c> if [show log window]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [show log window]; otherwise, <c>false</c>.</value>
[ProtoMember(30)]
public bool ShowLogWindow { get; set; } public bool ShowLogWindow { get; set; }
/// <summary> /// <summary>
/// The list of types that will NOT be allowed to have internet providers run against them even if they are turned on. /// The list of types that will NOT be allowed to have internet providers run against them even if they are turned on.
/// </summary> /// </summary>
/// <value>The internet provider exclude types.</value> /// <value>The internet provider exclude types.</value>
[ProtoMember(32)]
public string[] InternetProviderExcludeTypes { get; set; } public string[] InternetProviderExcludeTypes { get; set; }
/// <summary> /// <summary>
/// Gets or sets the recent item days. /// Gets or sets the recent item days.
/// </summary> /// </summary>
/// <value>The recent item days.</value> /// <value>The recent item days.</value>
[ProtoMember(34)]
public int RecentItemDays { get; set; } public int RecentItemDays { get; set; }
/// <summary> /// <summary>
/// Gets or sets the minimum percentage of an item that must be played in order for playstate to be updated. /// Gets or sets the minimum percentage of an item that must be played in order for playstate to be updated.
/// </summary> /// </summary>
/// <value>The min resume PCT.</value> /// <value>The min resume PCT.</value>
[ProtoMember(36)]
public int MinResumePct { get; set; } public int MinResumePct { get; set; }
/// <summary> /// <summary>
/// Gets or sets the maximum percentage of an item that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched. /// Gets or sets the maximum percentage of an item that can be played while still saving playstate. If this percentage is crossed playstate will be reset to the beginning and the item will be marked watched.
/// </summary> /// </summary>
/// <value>The max resume PCT.</value> /// <value>The max resume PCT.</value>
[ProtoMember(37)]
public int MaxResumePct { get; set; } public int MaxResumePct { get; set; }
/// <summary> /// <summary>
/// Gets or sets the minimum duration that an item must have in order to be eligible for playstate updates.. /// Gets or sets the minimum duration that an item must have in order to be eligible for playstate updates..
/// </summary> /// </summary>
/// <value>The min resume duration seconds.</value> /// <value>The min resume duration seconds.</value>
[ProtoMember(38)]
public int MinResumeDurationSeconds { get; set; } public int MinResumeDurationSeconds { get; set; }
/// <summary> /// <summary>
@ -222,14 +190,12 @@ namespace MediaBrowser.Model.Configuration
/// different directories and files. /// different directories and files.
/// </summary> /// </summary>
/// <value>The file watcher delay.</value> /// <value>The file watcher delay.</value>
[ProtoMember(55)]
public int FileWatcherDelay { get; set; } public int FileWatcherDelay { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [enable developer tools]. /// Gets or sets a value indicating whether [enable developer tools].
/// </summary> /// </summary>
/// <value><c>true</c> if [enable developer tools]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [enable developer tools]; otherwise, <c>false</c>.</value>
[ProtoMember(57)]
public bool EnableDeveloperTools { get; set; } public bool EnableDeveloperTools { get; set; }
/// <summary> /// <summary>
@ -237,18 +203,14 @@ namespace MediaBrowser.Model.Configuration
/// Allows potential contributors without visual studio to modify production dashboard code and test changes. /// Allows potential contributors without visual studio to modify production dashboard code and test changes.
/// </summary> /// </summary>
/// <value><c>true</c> if [enable dashboard response caching]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [enable dashboard response caching]; otherwise, <c>false</c>.</value>
[ProtoMember(61)]
public bool EnableDashboardResponseCaching { get; set; } public bool EnableDashboardResponseCaching { get; set; }
/// <summary> /// <summary>
/// Allows the dashboard to be served from a custom path. /// Allows the dashboard to be served from a custom path.
/// </summary> /// </summary>
/// <value>The dashboard source path.</value> /// <value>The dashboard source path.</value>
[ProtoMember(62)]
public string DashboardSourcePath { get; set; } public string DashboardSourcePath { get; set; }
// Next Proto number ====> 62
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class. /// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
/// </summary> /// </summary>

@ -1,53 +1,45 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Configuration namespace MediaBrowser.Model.Configuration
{ {
/// <summary> /// <summary>
/// Class UserConfiguration /// Class UserConfiguration
/// </summary> /// </summary>
[ProtoContract]
public class UserConfiguration public class UserConfiguration
{ {
/// <summary> /// <summary>
/// Gets or sets the max parental rating. /// Gets or sets the max parental rating.
/// </summary> /// </summary>
/// <value>The max parental rating.</value> /// <value>The max parental rating.</value>
[ProtoMember(1)]
public int? MaxParentalRating { get; set; } public int? MaxParentalRating { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [use custom library]. /// Gets or sets a value indicating whether [use custom library].
/// </summary> /// </summary>
/// <value><c>true</c> if [use custom library]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [use custom library]; otherwise, <c>false</c>.</value>
[ProtoMember(2)]
public bool UseCustomLibrary { get; set; } public bool UseCustomLibrary { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is administrator. /// Gets or sets a value indicating whether this instance is administrator.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is administrator; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is administrator; otherwise, <c>false</c>.</value>
[ProtoMember(3)]
public bool IsAdministrator { get; set; } public bool IsAdministrator { get; set; }
/// <summary> /// <summary>
/// Gets or sets the audio language preference. /// Gets or sets the audio language preference.
/// </summary> /// </summary>
/// <value>The audio language preference.</value> /// <value>The audio language preference.</value>
[ProtoMember(4)]
public string AudioLanguagePreference { get; set; } public string AudioLanguagePreference { get; set; }
/// <summary> /// <summary>
/// Gets or sets the subtitle language preference. /// Gets or sets the subtitle language preference.
/// </summary> /// </summary>
/// <value>The subtitle language preference.</value> /// <value>The subtitle language preference.</value>
[ProtoMember(5)]
public string SubtitleLanguagePreference { get; set; } public string SubtitleLanguagePreference { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [use forced subtitles only]. /// Gets or sets a value indicating whether [use forced subtitles only].
/// </summary> /// </summary>
/// <value><c>true</c> if [use forced subtitles only]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [use forced subtitles only]; otherwise, <c>false</c>.</value>
[ProtoMember(6)]
public bool UseForcedSubtitlesOnly { get; set; } public bool UseForcedSubtitlesOnly { get; set; }
/// <summary> /// <summary>

@ -1,5 +1,4 @@
using MediaBrowser.Model.Entities; using MediaBrowser.Model.Entities;
using ProtoBuf;
using System; using System;
namespace MediaBrowser.Model.Connectivity namespace MediaBrowser.Model.Connectivity
@ -7,56 +6,48 @@ namespace MediaBrowser.Model.Connectivity
/// <summary> /// <summary>
/// Class ClientConnectionInfo /// Class ClientConnectionInfo
/// </summary> /// </summary>
[ProtoContract]
public class ClientConnectionInfo public class ClientConnectionInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the user id. /// Gets or sets the user id.
/// </summary> /// </summary>
/// <value>The user id.</value> /// <value>The user id.</value>
[ProtoMember(1)]
public string UserId { get; set; } public string UserId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type of the client. /// Gets or sets the type of the client.
/// </summary> /// </summary>
/// <value>The type of the client.</value> /// <value>The type of the client.</value>
[ProtoMember(2)]
public string Client { get; set; } public string Client { get; set; }
/// <summary> /// <summary>
/// Gets or sets the last activity date. /// Gets or sets the last activity date.
/// </summary> /// </summary>
/// <value>The last activity date.</value> /// <value>The last activity date.</value>
[ProtoMember(3)]
public DateTime LastActivityDate { get; set; } public DateTime LastActivityDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name of the device. /// Gets or sets the name of the device.
/// </summary> /// </summary>
/// <value>The name of the device.</value> /// <value>The name of the device.</value>
[ProtoMember(4)]
public string DeviceName { get; set; } public string DeviceName { get; set; }
/// <summary> /// <summary>
/// Gets or sets the now playing item. /// Gets or sets the now playing item.
/// </summary> /// </summary>
/// <value>The now playing item.</value> /// <value>The now playing item.</value>
[ProtoMember(5)]
public BaseItemInfo NowPlayingItem { get; set; } public BaseItemInfo NowPlayingItem { get; set; }
/// <summary> /// <summary>
/// Gets or sets the now playing position ticks. /// Gets or sets the now playing position ticks.
/// </summary> /// </summary>
/// <value>The now playing position ticks.</value> /// <value>The now playing position ticks.</value>
[ProtoMember(6)]
public long? NowPlayingPositionTicks { get; set; } public long? NowPlayingPositionTicks { get; set; }
/// <summary> /// <summary>
/// Gets or sets the device id. /// Gets or sets the device id.
/// </summary> /// </summary>
/// <value>The device id.</value> /// <value>The device id.</value>
[ProtoMember(7)]
public string DeviceId { get; set; } public string DeviceId { get; set; }
} }
} }

@ -1,8 +1,7 @@
using System.ComponentModel; using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Entities;
using ProtoBuf;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
namespace MediaBrowser.Model.Dto namespace MediaBrowser.Model.Dto
@ -11,343 +10,294 @@ namespace MediaBrowser.Model.Dto
/// This is strictly used as a data transfer object from the api layer. /// This is strictly used as a data transfer object from the api layer.
/// This holds information about a BaseItem in a format that is convenient for the client. /// This holds information about a BaseItem in a format that is convenient for the client.
/// </summary> /// </summary>
[ProtoContract]
public class BaseItemDto : IHasProviderIds, INotifyPropertyChanged, IItemDto public class BaseItemDto : IHasProviderIds, INotifyPropertyChanged, IItemDto
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the id. /// Gets or sets the id.
/// </summary> /// </summary>
/// <value>The id.</value> /// <value>The id.</value>
[ProtoMember(2)]
public string Id { get; set; } public string Id { get; set; }
/// <summary> /// <summary>
/// Gets or sets the date created. /// Gets or sets the date created.
/// </summary> /// </summary>
/// <value>The date created.</value> /// <value>The date created.</value>
[ProtoMember(3)]
public DateTime? DateCreated { get; set; } public DateTime? DateCreated { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name of the sort. /// Gets or sets the name of the sort.
/// </summary> /// </summary>
/// <value>The name of the sort.</value> /// <value>The name of the sort.</value>
[ProtoMember(4)]
public string SortName { get; set; } public string SortName { get; set; }
/// <summary> /// <summary>
/// Gets or sets the premiere date. /// Gets or sets the premiere date.
/// </summary> /// </summary>
/// <value>The premiere date.</value> /// <value>The premiere date.</value>
[ProtoMember(5)]
public DateTime? PremiereDate { get; set; } public DateTime? PremiereDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the path. /// Gets or sets the path.
/// </summary> /// </summary>
/// <value>The path.</value> /// <value>The path.</value>
[ProtoMember(6)]
public string Path { get; set; } public string Path { get; set; }
/// <summary> /// <summary>
/// Gets or sets the official rating. /// Gets or sets the official rating.
/// </summary> /// </summary>
/// <value>The official rating.</value> /// <value>The official rating.</value>
[ProtoMember(7)]
public string OfficialRating { get; set; } public string OfficialRating { get; set; }
/// <summary> /// <summary>
/// Gets or sets the overview. /// Gets or sets the overview.
/// </summary> /// </summary>
/// <value>The overview.</value> /// <value>The overview.</value>
[ProtoMember(8)]
public string Overview { get; set; } public string Overview { get; set; }
/// <summary> /// <summary>
/// Gets or sets the taglines. /// Gets or sets the taglines.
/// </summary> /// </summary>
/// <value>The taglines.</value> /// <value>The taglines.</value>
[ProtoMember(9)]
public List<string> Taglines { get; set; } public List<string> Taglines { get; set; }
/// <summary> /// <summary>
/// Gets or sets the genres. /// Gets or sets the genres.
/// </summary> /// </summary>
/// <value>The genres.</value> /// <value>The genres.</value>
[ProtoMember(10)]
public List<string> Genres { get; set; } public List<string> Genres { get; set; }
/// <summary> /// <summary>
/// Gets or sets the community rating. /// Gets or sets the community rating.
/// </summary> /// </summary>
/// <value>The community rating.</value> /// <value>The community rating.</value>
[ProtoMember(11)]
public float? CommunityRating { get; set; } public float? CommunityRating { get; set; }
/// <summary> /// <summary>
/// Gets or sets the run time ticks. /// Gets or sets the run time ticks.
/// </summary> /// </summary>
/// <value>The run time ticks.</value> /// <value>The run time ticks.</value>
[ProtoMember(12)]
public long? RunTimeTicks { get; set; } public long? RunTimeTicks { get; set; }
/// <summary> /// <summary>
/// Gets or sets the aspect ratio. /// Gets or sets the aspect ratio.
/// </summary> /// </summary>
/// <value>The aspect ratio.</value> /// <value>The aspect ratio.</value>
[ProtoMember(13)]
public string AspectRatio { get; set; } public string AspectRatio { get; set; }
/// <summary> /// <summary>
/// Gets or sets the production year. /// Gets or sets the production year.
/// </summary> /// </summary>
/// <value>The production year.</value> /// <value>The production year.</value>
[ProtoMember(14)]
public int? ProductionYear { get; set; } public int? ProductionYear { get; set; }
/// <summary> /// <summary>
/// Gets or sets the index number. /// Gets or sets the index number.
/// </summary> /// </summary>
/// <value>The index number.</value> /// <value>The index number.</value>
[ProtoMember(15)]
public int? IndexNumber { get; set; } public int? IndexNumber { get; set; }
/// <summary> /// <summary>
/// Gets or sets the parent index number. /// Gets or sets the parent index number.
/// </summary> /// </summary>
/// <value>The parent index number.</value> /// <value>The parent index number.</value>
[ProtoMember(16)]
public int? ParentIndexNumber { get; set; } public int? ParentIndexNumber { get; set; }
/// <summary> /// <summary>
/// Gets or sets the trailer urls. /// Gets or sets the trailer urls.
/// </summary> /// </summary>
/// <value>The trailer urls.</value> /// <value>The trailer urls.</value>
[ProtoMember(17)]
public List<string> TrailerUrls { get; set; } public List<string> TrailerUrls { get; set; }
/// <summary> /// <summary>
/// Gets or sets the provider ids. /// Gets or sets the provider ids.
/// </summary> /// </summary>
/// <value>The provider ids.</value> /// <value>The provider ids.</value>
[ProtoMember(18)]
public Dictionary<string, string> ProviderIds { get; set; } public Dictionary<string, string> ProviderIds { get; set; }
/// <summary> /// <summary>
/// Gets or sets the language. /// Gets or sets the language.
/// </summary> /// </summary>
/// <value>The language.</value> /// <value>The language.</value>
[ProtoMember(24)]
public string Language { get; set; } public string Language { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is folder. /// Gets or sets a value indicating whether this instance is folder.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
[ProtoMember(25)]
public bool IsFolder { get; set; } public bool IsFolder { get; set; }
/// <summary> /// <summary>
/// Gets or sets the parent id. /// Gets or sets the parent id.
/// </summary> /// </summary>
/// <value>The parent id.</value> /// <value>The parent id.</value>
[ProtoMember(28)]
public string ParentId { get; set; } public string ParentId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type. /// Gets or sets the type.
/// </summary> /// </summary>
/// <value>The type.</value> /// <value>The type.</value>
[ProtoMember(29)]
public string Type { get; set; } public string Type { get; set; }
/// <summary> /// <summary>
/// Gets or sets the people. /// Gets or sets the people.
/// </summary> /// </summary>
/// <value>The people.</value> /// <value>The people.</value>
[ProtoMember(30)]
public BaseItemPerson[] People { get; set; } public BaseItemPerson[] People { get; set; }
/// <summary> /// <summary>
/// Gets or sets the studios. /// Gets or sets the studios.
/// </summary> /// </summary>
/// <value>The studios.</value> /// <value>The studios.</value>
[ProtoMember(31)]
public List<string> Studios { get; set; } public List<string> Studios { get; set; }
/// <summary> /// <summary>
/// If the item does not have a logo, this will hold the Id of the Parent that has one. /// If the item does not have a logo, this will hold the Id of the Parent that has one.
/// </summary> /// </summary>
/// <value>The parent logo item id.</value> /// <value>The parent logo item id.</value>
[ProtoMember(32)]
public string ParentLogoItemId { get; set; } public string ParentLogoItemId { get; set; }
/// <summary> /// <summary>
/// If the item does not have any backdrops, this will hold the Id of the Parent that has one. /// If the item does not have any backdrops, this will hold the Id of the Parent that has one.
/// </summary> /// </summary>
/// <value>The parent backdrop item id.</value> /// <value>The parent backdrop item id.</value>
[ProtoMember(33)]
public string ParentBackdropItemId { get; set; } public string ParentBackdropItemId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the parent backdrop image tags. /// Gets or sets the parent backdrop image tags.
/// </summary> /// </summary>
/// <value>The parent backdrop image tags.</value> /// <value>The parent backdrop image tags.</value>
[ProtoMember(34)]
public List<Guid> ParentBackdropImageTags { get; set; } public List<Guid> ParentBackdropImageTags { get; set; }
/// <summary> /// <summary>
/// Gets or sets the local trailer count. /// Gets or sets the local trailer count.
/// </summary> /// </summary>
/// <value>The local trailer count.</value> /// <value>The local trailer count.</value>
[ProtoMember(35)]
public int? LocalTrailerCount { get; set; } public int? LocalTrailerCount { get; set; }
/// <summary> /// <summary>
/// User data for this item based on the user it's being requested for /// User data for this item based on the user it's being requested for
/// </summary> /// </summary>
/// <value>The user data.</value> /// <value>The user data.</value>
[ProtoMember(36)]
public UserItemDataDto UserData { get; set; } public UserItemDataDto UserData { get; set; }
/// <summary> /// <summary>
/// Gets or sets the recently added item count. /// Gets or sets the recently added item count.
/// </summary> /// </summary>
/// <value>The recently added item count.</value> /// <value>The recently added item count.</value>
[ProtoMember(38)]
public int? RecentlyAddedItemCount { get; set; } public int? RecentlyAddedItemCount { get; set; }
/// <summary> /// <summary>
/// Gets or sets the played percentage. /// Gets or sets the played percentage.
/// </summary> /// </summary>
/// <value>The played percentage.</value> /// <value>The played percentage.</value>
[ProtoMember(41)]
public double? PlayedPercentage { get; set; } public double? PlayedPercentage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the recursive item count. /// Gets or sets the recursive item count.
/// </summary> /// </summary>
/// <value>The recursive item count.</value> /// <value>The recursive item count.</value>
[ProtoMember(42)]
public int? RecursiveItemCount { get; set; } public int? RecursiveItemCount { get; set; }
/// <summary> /// <summary>
/// Gets or sets the child count. /// Gets or sets the child count.
/// </summary> /// </summary>
/// <value>The child count.</value> /// <value>The child count.</value>
[ProtoMember(44)]
public int? ChildCount { get; set; } public int? ChildCount { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name of the series. /// Gets or sets the name of the series.
/// </summary> /// </summary>
/// <value>The name of the series.</value> /// <value>The name of the series.</value>
[ProtoMember(45)]
public string SeriesName { get; set; } public string SeriesName { get; set; }
/// <summary> /// <summary>
/// Gets or sets the series id. /// Gets or sets the series id.
/// </summary> /// </summary>
/// <value>The series id.</value> /// <value>The series id.</value>
[ProtoMember(46)]
public string SeriesId { get; set; } public string SeriesId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the special feature count. /// Gets or sets the special feature count.
/// </summary> /// </summary>
/// <value>The special feature count.</value> /// <value>The special feature count.</value>
[ProtoMember(48)]
public int? SpecialFeatureCount { get; set; } public int? SpecialFeatureCount { get; set; }
/// <summary> /// <summary>
/// Gets or sets the display preferences id. /// Gets or sets the display preferences id.
/// </summary> /// </summary>
/// <value>The display preferences id.</value> /// <value>The display preferences id.</value>
[ProtoMember(49)]
public string DisplayPreferencesId { get; set; } public string DisplayPreferencesId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the status. /// Gets or sets the status.
/// </summary> /// </summary>
/// <value>The status.</value> /// <value>The status.</value>
[ProtoMember(50)]
public SeriesStatus? Status { get; set; } public SeriesStatus? Status { get; set; }
/// <summary> /// <summary>
/// Gets or sets the air time. /// Gets or sets the air time.
/// </summary> /// </summary>
/// <value>The air time.</value> /// <value>The air time.</value>
[ProtoMember(51)]
public string AirTime { get; set; } public string AirTime { get; set; }
/// <summary> /// <summary>
/// Gets or sets the air days. /// Gets or sets the air days.
/// </summary> /// </summary>
/// <value>The air days.</value> /// <value>The air days.</value>
[ProtoMember(52)]
public List<DayOfWeek> AirDays { get; set; } public List<DayOfWeek> AirDays { get; set; }
/// <summary> /// <summary>
/// Gets or sets the index options. /// Gets or sets the index options.
/// </summary> /// </summary>
/// <value>The index options.</value> /// <value>The index options.</value>
[ProtoMember(54)]
public string[] IndexOptions { get; set; } public string[] IndexOptions { get; set; }
/// <summary> /// <summary>
/// Gets or sets the primary image aspect ratio. /// Gets or sets the primary image aspect ratio.
/// </summary> /// </summary>
/// <value>The primary image aspect ratio.</value> /// <value>The primary image aspect ratio.</value>
[ProtoMember(55)]
public double? PrimaryImageAspectRatio { get; set; } public double? PrimaryImageAspectRatio { get; set; }
/// <summary> /// <summary>
/// Gets or sets the artist. /// Gets or sets the artist.
/// </summary> /// </summary>
/// <value>The artist.</value> /// <value>The artist.</value>
[ProtoMember(56)]
public string Artist { get; set; } public string Artist { get; set; }
/// <summary> /// <summary>
/// Gets or sets the album. /// Gets or sets the album.
/// </summary> /// </summary>
/// <value>The album.</value> /// <value>The album.</value>
[ProtoMember(57)]
public string Album { get; set; } public string Album { get; set; }
/// <summary> /// <summary>
/// Gets or sets the album artist. /// Gets or sets the album artist.
/// </summary> /// </summary>
/// <value>The album artist.</value> /// <value>The album artist.</value>
[ProtoMember(58)]
public string AlbumArtist { get; set; } public string AlbumArtist { get; set; }
/// <summary> /// <summary>
/// Gets or sets the media streams. /// Gets or sets the media streams.
/// </summary> /// </summary>
/// <value>The media streams.</value> /// <value>The media streams.</value>
[ProtoMember(59)]
public List<MediaStream> MediaStreams { get; set; } public List<MediaStream> MediaStreams { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type of the video. /// Gets or sets the type of the video.
/// </summary> /// </summary>
/// <value>The type of the video.</value> /// <value>The type of the video.</value>
[ProtoMember(60)]
public VideoType? VideoType { get; set; } public VideoType? VideoType { get; set; }
/// <summary> /// <summary>
/// Gets or sets the display type of the media. /// Gets or sets the display type of the media.
/// </summary> /// </summary>
/// <value>The display type of the media.</value> /// <value>The display type of the media.</value>
[ProtoMember(61)]
public string DisplayMediaType { get; set; } public string DisplayMediaType { get; set; }
/// <summary> /// <summary>
@ -374,98 +324,84 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the image tags. /// Gets or sets the image tags.
/// </summary> /// </summary>
/// <value>The image tags.</value> /// <value>The image tags.</value>
[ProtoMember(62)]
public Dictionary<ImageType, Guid> ImageTags { get; set; } public Dictionary<ImageType, Guid> ImageTags { get; set; }
/// <summary> /// <summary>
/// Gets or sets the backdrop image tags. /// Gets or sets the backdrop image tags.
/// </summary> /// </summary>
/// <value>The backdrop image tags.</value> /// <value>The backdrop image tags.</value>
[ProtoMember(63)]
public List<Guid> BackdropImageTags { get; set; } public List<Guid> BackdropImageTags { get; set; }
/// <summary> /// <summary>
/// Gets or sets the parent logo image tag. /// Gets or sets the parent logo image tag.
/// </summary> /// </summary>
/// <value>The parent logo image tag.</value> /// <value>The parent logo image tag.</value>
[ProtoMember(64)]
public Guid? ParentLogoImageTag { get; set; } public Guid? ParentLogoImageTag { get; set; }
/// <summary> /// <summary>
/// Gets or sets the chapters. /// Gets or sets the chapters.
/// </summary> /// </summary>
/// <value>The chapters.</value> /// <value>The chapters.</value>
[ProtoMember(65)]
public List<ChapterInfoDto> Chapters { get; set; } public List<ChapterInfoDto> Chapters { get; set; }
/// <summary> /// <summary>
/// Gets or sets the video format. /// Gets or sets the video format.
/// </summary> /// </summary>
/// <value>The video format.</value> /// <value>The video format.</value>
[ProtoMember(66)]
public VideoFormat? VideoFormat { get; set; } public VideoFormat? VideoFormat { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type of the location. /// Gets or sets the type of the location.
/// </summary> /// </summary>
/// <value>The type of the location.</value> /// <value>The type of the location.</value>
[ProtoMember(67)]
public LocationType LocationType { get; set; } public LocationType LocationType { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type of the iso. /// Gets or sets the type of the iso.
/// </summary> /// </summary>
/// <value>The type of the iso.</value> /// <value>The type of the iso.</value>
[ProtoMember(68)]
public IsoType? IsoType { get; set; } public IsoType? IsoType { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type of the media. /// Gets or sets the type of the media.
/// </summary> /// </summary>
/// <value>The type of the media.</value> /// <value>The type of the media.</value>
[ProtoMember(69)]
public string MediaType { get; set; } public string MediaType { get; set; }
/// <summary> /// <summary>
/// Gets or sets the overview HTML. /// Gets or sets the overview HTML.
/// </summary> /// </summary>
/// <value>The overview HTML.</value> /// <value>The overview HTML.</value>
[ProtoMember(70)]
public string OverviewHtml { get; set; } public string OverviewHtml { get; set; }
/// <summary> /// <summary>
/// Gets or sets the end date. /// Gets or sets the end date.
/// </summary> /// </summary>
/// <value>The end date.</value> /// <value>The end date.</value>
[ProtoMember(71)]
public DateTime? EndDate { get; set; } public DateTime? EndDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the home page URL. /// Gets or sets the home page URL.
/// </summary> /// </summary>
/// <value>The home page URL.</value> /// <value>The home page URL.</value>
[ProtoMember(72)]
public string HomePageUrl { get; set; } public string HomePageUrl { get; set; }
/// <summary> /// <summary>
/// Gets or sets the production locations. /// Gets or sets the production locations.
/// </summary> /// </summary>
/// <value>The production locations.</value> /// <value>The production locations.</value>
[ProtoMember(73)]
public List<string> ProductionLocations { get; set; } public List<string> ProductionLocations { get; set; }
/// <summary> /// <summary>
/// Gets or sets the budget. /// Gets or sets the budget.
/// </summary> /// </summary>
/// <value>The budget.</value> /// <value>The budget.</value>
[ProtoMember(74)]
public double? Budget { get; set; } public double? Budget { get; set; }
/// <summary> /// <summary>
/// Gets or sets the revenue. /// Gets or sets the revenue.
/// </summary> /// </summary>
/// <value>The revenue.</value> /// <value>The revenue.</value>
[ProtoMember(75)]
public double? Revenue { get; set; } public double? Revenue { get; set; }
/// <summary> /// <summary>

@ -1,5 +1,4 @@
using ProtoBuf; using System;
using System;
using System.ComponentModel; using System.ComponentModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
@ -8,35 +7,30 @@ namespace MediaBrowser.Model.Dto
/// <summary> /// <summary>
/// This is used by the api to get information about a Person within a BaseItem /// This is used by the api to get information about a Person within a BaseItem
/// </summary> /// </summary>
[ProtoContract]
public class BaseItemPerson : INotifyPropertyChanged public class BaseItemPerson : INotifyPropertyChanged
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the role. /// Gets or sets the role.
/// </summary> /// </summary>
/// <value>The role.</value> /// <value>The role.</value>
[ProtoMember(2)]
public string Role { get; set; } public string Role { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type. /// Gets or sets the type.
/// </summary> /// </summary>
/// <value>The type.</value> /// <value>The type.</value>
[ProtoMember(3)]
public string Type { get; set; } public string Type { get; set; }
/// <summary> /// <summary>
/// Gets or sets the primary image tag. /// Gets or sets the primary image tag.
/// </summary> /// </summary>
/// <value>The primary image tag.</value> /// <value>The primary image tag.</value>
[ProtoMember(4)]
public Guid? PrimaryImageTag { get; set; } public Guid? PrimaryImageTag { get; set; }
/// <summary> /// <summary>

@ -1,5 +1,4 @@
using ProtoBuf; using System;
using System;
using System.ComponentModel; using System.ComponentModel;
using System.Runtime.Serialization; using System.Runtime.Serialization;
@ -8,28 +7,24 @@ namespace MediaBrowser.Model.Dto
/// <summary> /// <summary>
/// Class ChapterInfo /// Class ChapterInfo
/// </summary> /// </summary>
[ProtoContract]
public class ChapterInfoDto : INotifyPropertyChanged public class ChapterInfoDto : INotifyPropertyChanged
{ {
/// <summary> /// <summary>
/// Gets or sets the start position ticks. /// Gets or sets the start position ticks.
/// </summary> /// </summary>
/// <value>The start position ticks.</value> /// <value>The start position ticks.</value>
[ProtoMember(1)]
public long StartPositionTicks { get; set; } public long StartPositionTicks { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(2)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the image tag. /// Gets or sets the image tag.
/// </summary> /// </summary>
/// <value>The image tag.</value> /// <value>The image tag.</value>
[ProtoMember(3)]
public Guid? ImageTag { get; set; } public Guid? ImageTag { get; set; }
/// <summary> /// <summary>

@ -1,6 +1,5 @@
using System.ComponentModel; using System.ComponentModel;
using MediaBrowser.Model.Configuration; using MediaBrowser.Model.Configuration;
using ProtoBuf;
using System; using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;
@ -9,63 +8,54 @@ namespace MediaBrowser.Model.Dto
/// <summary> /// <summary>
/// Class UserDto /// Class UserDto
/// </summary> /// </summary>
[ProtoContract]
public class UserDto : INotifyPropertyChanged, IItemDto public class UserDto : INotifyPropertyChanged, IItemDto
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the id. /// Gets or sets the id.
/// </summary> /// </summary>
/// <value>The id.</value> /// <value>The id.</value>
[ProtoMember(2)]
public string Id { get; set; } public string Id { get; set; }
/// <summary> /// <summary>
/// Gets or sets the primary image tag. /// Gets or sets the primary image tag.
/// </summary> /// </summary>
/// <value>The primary image tag.</value> /// <value>The primary image tag.</value>
[ProtoMember(3)]
public Guid? PrimaryImageTag { get; set; } public Guid? PrimaryImageTag { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance has password. /// Gets or sets a value indicating whether this instance has password.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance has password; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance has password; otherwise, <c>false</c>.</value>
[ProtoMember(4)]
public bool HasPassword { get; set; } public bool HasPassword { get; set; }
/// <summary> /// <summary>
/// Gets or sets the last login date. /// Gets or sets the last login date.
/// </summary> /// </summary>
/// <value>The last login date.</value> /// <value>The last login date.</value>
[ProtoMember(5)]
public DateTime? LastLoginDate { get; set; } public DateTime? LastLoginDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the last activity date. /// Gets or sets the last activity date.
/// </summary> /// </summary>
/// <value>The last activity date.</value> /// <value>The last activity date.</value>
[ProtoMember(6)]
public DateTime? LastActivityDate { get; set; } public DateTime? LastActivityDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the configuration. /// Gets or sets the configuration.
/// </summary> /// </summary>
/// <value>The configuration.</value> /// <value>The configuration.</value>
[ProtoMember(7)]
public UserConfiguration Configuration { get; set; } public UserConfiguration Configuration { get; set; }
/// <summary> /// <summary>
/// Gets or sets the primary image aspect ratio. /// Gets or sets the primary image aspect ratio.
/// </summary> /// </summary>
/// <value>The primary image aspect ratio.</value> /// <value>The primary image aspect ratio.</value>
[ProtoMember(8)]
public double? PrimaryImageAspectRatio { get; set; } public double? PrimaryImageAspectRatio { get; set; }
/// <summary> /// <summary>

@ -1,62 +1,53 @@
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using ProtoBuf;
namespace MediaBrowser.Model.Dto namespace MediaBrowser.Model.Dto
{ {
/// <summary> /// <summary>
/// Class UserItemDataDto /// Class UserItemDataDto
/// </summary> /// </summary>
[ProtoContract]
public class UserItemDataDto : INotifyPropertyChanged public class UserItemDataDto : INotifyPropertyChanged
{ {
/// <summary> /// <summary>
/// Gets or sets the rating. /// Gets or sets the rating.
/// </summary> /// </summary>
/// <value>The rating.</value> /// <value>The rating.</value>
[ProtoMember(1)]
public float? Rating { get; set; } public float? Rating { get; set; }
/// <summary> /// <summary>
/// Gets or sets the playback position ticks. /// Gets or sets the playback position ticks.
/// </summary> /// </summary>
/// <value>The playback position ticks.</value> /// <value>The playback position ticks.</value>
[ProtoMember(2)]
public long PlaybackPositionTicks { get; set; } public long PlaybackPositionTicks { get; set; }
/// <summary> /// <summary>
/// Gets or sets the play count. /// Gets or sets the play count.
/// </summary> /// </summary>
/// <value>The play count.</value> /// <value>The play count.</value>
[ProtoMember(3)]
public int PlayCount { get; set; } public int PlayCount { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is favorite. /// Gets or sets a value indicating whether this instance is favorite.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is favorite; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is favorite; otherwise, <c>false</c>.</value>
[ProtoMember(4)]
public bool IsFavorite { get; set; } public bool IsFavorite { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is likes. /// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is likes.
/// </summary> /// </summary>
/// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value> /// <value><c>null</c> if [likes] contains no value, <c>true</c> if [likes]; otherwise, <c>false</c>.</value>
[ProtoMember(5)]
public bool? Likes { get; set; } public bool? Likes { get; set; }
/// <summary> /// <summary>
/// Gets or sets the last played date. /// Gets or sets the last played date.
/// </summary> /// </summary>
/// <value>The last played date.</value> /// <value>The last played date.</value>
[ProtoMember(6)]
public DateTime? LastPlayedDate { get; set; } public DateTime? LastPlayedDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is played. /// Gets or sets a value indicating whether this <see cref="UserItemDataDto" /> is played.
/// </summary> /// </summary>
/// <value><c>true</c> if played; otherwise, <c>false</c>.</value> /// <value><c>true</c> if played; otherwise, <c>false</c>.</value>
[ProtoMember(7)]
public bool Played { get; set; } public bool Played { get; set; }
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;

@ -1,5 +1,4 @@
using ProtoBuf; using System;
using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;
namespace MediaBrowser.Model.Entities namespace MediaBrowser.Model.Entities
@ -7,56 +6,48 @@ namespace MediaBrowser.Model.Entities
/// <summary> /// <summary>
/// This is a stub class containing only basic information about an item /// This is a stub class containing only basic information about an item
/// </summary> /// </summary>
[ProtoContract]
public class BaseItemInfo public class BaseItemInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the id. /// Gets or sets the id.
/// </summary> /// </summary>
/// <value>The id.</value> /// <value>The id.</value>
[ProtoMember(2)]
public string Id { get; set; } public string Id { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type. /// Gets or sets the type.
/// </summary> /// </summary>
/// <value>The type.</value> /// <value>The type.</value>
[ProtoMember(3)]
public string Type { get; set; } public string Type { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is folder. /// Gets or sets a value indicating whether this instance is folder.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is folder; otherwise, <c>false</c>.</value>
[ProtoMember(4)]
public bool IsFolder { get; set; } public bool IsFolder { get; set; }
/// <summary> /// <summary>
/// Gets or sets the run time ticks. /// Gets or sets the run time ticks.
/// </summary> /// </summary>
/// <value>The run time ticks.</value> /// <value>The run time ticks.</value>
[ProtoMember(5)]
public long? RunTimeTicks { get; set; } public long? RunTimeTicks { get; set; }
/// <summary> /// <summary>
/// Gets or sets the primary image tag. /// Gets or sets the primary image tag.
/// </summary> /// </summary>
/// <value>The primary image tag.</value> /// <value>The primary image tag.</value>
[ProtoMember(6)]
public Guid? PrimaryImageTag { get; set; } public Guid? PrimaryImageTag { get; set; }
/// <summary> /// <summary>
/// Gets or sets the backdrop image tag. /// Gets or sets the backdrop image tag.
/// </summary> /// </summary>
/// <value>The backdrop image tag.</value> /// <value>The backdrop image tag.</value>
[ProtoMember(7)]
public Guid? BackdropImageTag { get; set; } public Guid? BackdropImageTag { get; set; }
/// <summary> /// <summary>

@ -1,32 +1,27 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Entities namespace MediaBrowser.Model.Entities
{ {
/// <summary> /// <summary>
/// Class ChapterInfo /// Class ChapterInfo
/// </summary> /// </summary>
[ProtoContract]
public class ChapterInfo public class ChapterInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the start position ticks. /// Gets or sets the start position ticks.
/// </summary> /// </summary>
/// <value>The start position ticks.</value> /// <value>The start position ticks.</value>
[ProtoMember(1)]
public long StartPositionTicks { get; set; } public long StartPositionTicks { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(2)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the image path. /// Gets or sets the image path.
/// </summary> /// </summary>
/// <value>The image path.</value> /// <value>The image path.</value>
[ProtoMember(3)]
public string ImagePath { get; set; } public string ImagePath { get; set; }
} }
} }

@ -1,5 +1,4 @@
using MediaBrowser.Model.Drawing; using MediaBrowser.Model.Drawing;
using ProtoBuf;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -8,7 +7,6 @@ namespace MediaBrowser.Model.Entities
/// <summary> /// <summary>
/// Defines the display preferences for any item that supports them (usually Folders) /// Defines the display preferences for any item that supports them (usually Folders)
/// </summary> /// </summary>
[ProtoContract]
public class DisplayPreferences public class DisplayPreferences
{ {
/// <summary> /// <summary>
@ -31,67 +29,56 @@ namespace MediaBrowser.Model.Entities
/// Gets or sets the user id. /// Gets or sets the user id.
/// </summary> /// </summary>
/// <value>The user id.</value> /// <value>The user id.</value>
[ProtoMember(1)]
public Guid Id { get; set; } public Guid Id { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type of the view. /// Gets or sets the type of the view.
/// </summary> /// </summary>
/// <value>The type of the view.</value> /// <value>The type of the view.</value>
[ProtoMember(2)]
public string ViewType { get; set; } public string ViewType { get; set; }
/// <summary> /// <summary>
/// Gets or sets the sort by. /// Gets or sets the sort by.
/// </summary> /// </summary>
/// <value>The sort by.</value> /// <value>The sort by.</value>
[ProtoMember(4)]
public string SortBy { get; set; } public string SortBy { get; set; }
/// <summary> /// <summary>
/// Gets or sets the index by. /// Gets or sets the index by.
/// </summary> /// </summary>
/// <value>The index by.</value> /// <value>The index by.</value>
[ProtoMember(5)]
public string IndexBy { get; set; } public string IndexBy { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [remember indexing]. /// Gets or sets a value indicating whether [remember indexing].
/// </summary> /// </summary>
/// <value><c>true</c> if [remember indexing]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [remember indexing]; otherwise, <c>false</c>.</value>
[ProtoMember(6)]
public bool RememberIndexing { get; set; } public bool RememberIndexing { get; set; }
/// <summary> /// <summary>
/// Gets or sets the height of the primary image. /// Gets or sets the height of the primary image.
/// </summary> /// </summary>
/// <value>The height of the primary image.</value> /// <value>The height of the primary image.</value>
[ProtoMember(7)]
public int PrimaryImageHeight { get; set; } public int PrimaryImageHeight { get; set; }
/// <summary> /// <summary>
/// Gets or sets the width of the primary image. /// Gets or sets the width of the primary image.
/// </summary> /// </summary>
/// <value>The width of the primary image.</value> /// <value>The width of the primary image.</value>
[ProtoMember(8)]
public int PrimaryImageWidth { get; set; } public int PrimaryImageWidth { get; set; }
/// <summary> /// <summary>
/// Gets or sets the custom prefs. /// Gets or sets the custom prefs.
/// </summary> /// </summary>
/// <value>The custom prefs.</value> /// <value>The custom prefs.</value>
[ProtoMember(9)]
public Dictionary<string, string> CustomPrefs { get; set; } public Dictionary<string, string> CustomPrefs { get; set; }
/// <summary> /// <summary>
/// Gets or sets the scroll direction. /// Gets or sets the scroll direction.
/// </summary> /// </summary>
/// <value>The scroll direction.</value> /// <value>The scroll direction.</value>
[ProtoMember(10)]
public ScrollDirection ScrollDirection { get; set; } public ScrollDirection ScrollDirection { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [remember sorting]. /// Gets or sets a value indicating whether [remember sorting].
/// </summary> /// </summary>
/// <value><c>true</c> if [remember sorting]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [remember sorting]; otherwise, <c>false</c>.</value>
[ProtoMember(11)]
public bool RememberSorting { get; set; } public bool RememberSorting { get; set; }
/// <summary> /// <summary>
/// Gets or sets the sort order. /// Gets or sets the sort order.
/// </summary> /// </summary>
/// <value>The sort order.</value> /// <value>The sort order.</value>
[ProtoMember(12)]
public SortOrder SortOrder { get; set; } public SortOrder SortOrder { get; set; }
/// <summary> /// <summary>

@ -1,50 +1,41 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Entities namespace MediaBrowser.Model.Entities
{ {
[ProtoContract]
public class ImageDownloadOptions public class ImageDownloadOptions
{ {
/// <summary> /// <summary>
/// Download Art Image /// Download Art Image
/// </summary> /// </summary>
[ProtoMember(1)]
public bool Art { get; set; } public bool Art { get; set; }
/// <summary> /// <summary>
/// Download Logo Image /// Download Logo Image
/// </summary> /// </summary>
[ProtoMember(2)]
public bool Logo { get; set; } public bool Logo { get; set; }
/// <summary> /// <summary>
/// Download Primary Image /// Download Primary Image
/// </summary> /// </summary>
[ProtoMember(3)]
public bool Primary { get; set; } public bool Primary { get; set; }
/// <summary> /// <summary>
/// Download Backdrop Images /// Download Backdrop Images
/// </summary> /// </summary>
[ProtoMember(4)]
public bool Backdrops { get; set; } public bool Backdrops { get; set; }
/// <summary> /// <summary>
/// Download Disc Image /// Download Disc Image
/// </summary> /// </summary>
[ProtoMember(5)]
public bool Disc { get; set; } public bool Disc { get; set; }
/// <summary> /// <summary>
/// Download Thumb Image /// Download Thumb Image
/// </summary> /// </summary>
[ProtoMember(6)]
public bool Thumb { get; set; } public bool Thumb { get; set; }
/// <summary> /// <summary>
/// Download Banner Image /// Download Banner Image
/// </summary> /// </summary>
[ProtoMember(7)]
public bool Banner { get; set; } public bool Banner { get; set; }
} }

@ -1,151 +1,129 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Entities namespace MediaBrowser.Model.Entities
{ {
/// <summary> /// <summary>
/// Class MediaStream /// Class MediaStream
/// </summary> /// </summary>
[ProtoContract]
public class MediaStream public class MediaStream
{ {
/// <summary> /// <summary>
/// Gets or sets the codec. /// Gets or sets the codec.
/// </summary> /// </summary>
/// <value>The codec.</value> /// <value>The codec.</value>
[ProtoMember(1)]
public string Codec { get; set; } public string Codec { get; set; }
/// <summary> /// <summary>
/// Gets or sets the language. /// Gets or sets the language.
/// </summary> /// </summary>
/// <value>The language.</value> /// <value>The language.</value>
[ProtoMember(2)]
public string Language { get; set; } public string Language { get; set; }
/// <summary>
/// Gets or sets the type of the scan.
/// </summary>
/// <value>The type of the scan.</value>
public string ScanType { get; set; }
/// <summary> /// <summary>
/// Gets or sets the bit rate. /// Gets or sets the bit rate.
/// </summary> /// </summary>
/// <value>The bit rate.</value> /// <value>The bit rate.</value>
[ProtoMember(3)]
public int? BitRate { get; set; } public int? BitRate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the channels. /// Gets or sets the channels.
/// </summary> /// </summary>
/// <value>The channels.</value> /// <value>The channels.</value>
[ProtoMember(4)]
public int? Channels { get; set; } public int? Channels { get; set; }
/// <summary> /// <summary>
/// Gets or sets the sample rate. /// Gets or sets the sample rate.
/// </summary> /// </summary>
/// <value>The sample rate.</value> /// <value>The sample rate.</value>
[ProtoMember(5)]
public int? SampleRate { get; set; } public int? SampleRate { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is default. /// Gets or sets a value indicating whether this instance is default.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is default; otherwise, <c>false</c>.</value>
[ProtoMember(6)]
public bool IsDefault { get; set; } public bool IsDefault { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is forced. /// Gets or sets a value indicating whether this instance is forced.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is forced; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is forced; otherwise, <c>false</c>.</value>
[ProtoMember(7)]
public bool IsForced { get; set; } public bool IsForced { get; set; }
/// <summary> /// <summary>
/// Gets or sets the height. /// Gets or sets the height.
/// </summary> /// </summary>
/// <value>The height.</value> /// <value>The height.</value>
[ProtoMember(8)]
public int? Height { get; set; } public int? Height { get; set; }
/// <summary> /// <summary>
/// Gets or sets the width. /// Gets or sets the width.
/// </summary> /// </summary>
/// <value>The width.</value> /// <value>The width.</value>
[ProtoMember(9)]
public int? Width { get; set; } public int? Width { get; set; }
/// <summary>
/// Gets or sets the type of the scan.
/// </summary>
/// <value>The type of the scan.</value>
[ProtoMember(10)]
public string ScanType { get; set; }
/// <summary> /// <summary>
/// Gets or sets the average frame rate. /// Gets or sets the average frame rate.
/// </summary> /// </summary>
/// <value>The average frame rate.</value> /// <value>The average frame rate.</value>
[ProtoMember(11)]
public float? AverageFrameRate { get; set; } public float? AverageFrameRate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the real frame rate. /// Gets or sets the real frame rate.
/// </summary> /// </summary>
/// <value>The real frame rate.</value> /// <value>The real frame rate.</value>
[ProtoMember(12)]
public float? RealFrameRate { get; set; } public float? RealFrameRate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the profile. /// Gets or sets the profile.
/// </summary> /// </summary>
/// <value>The profile.</value> /// <value>The profile.</value>
[ProtoMember(13)]
public string Profile { get; set; } public string Profile { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type. /// Gets or sets the type.
/// </summary> /// </summary>
/// <value>The type.</value> /// <value>The type.</value>
[ProtoMember(14)]
public MediaStreamType Type { get; set; } public MediaStreamType Type { get; set; }
/// <summary> /// <summary>
/// Gets or sets the aspect ratio. /// Gets or sets the aspect ratio.
/// </summary> /// </summary>
/// <value>The aspect ratio.</value> /// <value>The aspect ratio.</value>
[ProtoMember(15)]
public string AspectRatio { get; set; } public string AspectRatio { get; set; }
/// <summary> /// <summary>
/// Gets or sets the index. /// Gets or sets the index.
/// </summary> /// </summary>
/// <value>The index.</value> /// <value>The index.</value>
[ProtoMember(16)]
public int Index { get; set; } public int Index { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is external. /// Gets or sets a value indicating whether this instance is external.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is external; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is external; otherwise, <c>false</c>.</value>
[ProtoMember(17)]
public bool IsExternal { get; set; } public bool IsExternal { get; set; }
/// <summary> /// <summary>
/// Gets or sets the filename. /// Gets or sets the filename.
/// </summary> /// </summary>
/// <value>The filename.</value> /// <value>The filename.</value>
[ProtoMember(18)]
public string Path { get; set; } public string Path { get; set; }
/// <summary> /// <summary>
/// Gets or sets the level. /// Gets or sets the level.
/// </summary> /// </summary>
/// <value>The level.</value> /// <value>The level.</value>
[ProtoMember(19)]
public double? Level { get; set; } public double? Level { get; set; }
/// <summary> /// <summary>
/// Gets or sets the pixel format. /// Gets or sets the pixel format.
/// </summary> /// </summary>
/// <value>The pixel format.</value> /// <value>The pixel format.</value>
[ProtoMember(20)]
public string PixelFormat { get; set; } public string PixelFormat { get; set; }
} }

@ -1,25 +1,21 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Entities namespace MediaBrowser.Model.Entities
{ {
/// <summary> /// <summary>
/// Class ParentalRating /// Class ParentalRating
/// </summary> /// </summary>
[ProtoContract]
public class ParentalRating public class ParentalRating
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the value. /// Gets or sets the value.
/// </summary> /// </summary>
/// <value>The value.</value> /// <value>The value.</value>
[ProtoMember(2)]
public int Value { get; set; } public int Value { get; set; }
} }
} }

@ -1,32 +1,27 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Entities namespace MediaBrowser.Model.Entities
{ {
/// <summary> /// <summary>
/// Class PluginSecurityInfo /// Class PluginSecurityInfo
/// </summary> /// </summary>
[ProtoContract]
public class PluginSecurityInfo public class PluginSecurityInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the supporter key. /// Gets or sets the supporter key.
/// </summary> /// </summary>
/// <value>The supporter key.</value> /// <value>The supporter key.</value>
[ProtoMember(1)]
public string SupporterKey { get; set; } public string SupporterKey { get; set; }
/// <summary> /// <summary>
/// Gets or sets the legacy supporter key. /// Gets or sets the legacy supporter key.
/// </summary> /// </summary>
/// <value><c>The legacy supporter key</value> /// <value><c>The legacy supporter key</value>
[ProtoMember(2)]
public string LegacyKey { get; set; } public string LegacyKey { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is MB supporter. /// Gets or sets a value indicating whether this instance is MB supporter.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is MB supporter; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is MB supporter; otherwise, <c>false</c>.</value>
[ProtoMember(3)]
public bool IsMBSupporter { get; set; } public bool IsMBSupporter { get; set; }
} }
} }

@ -1,8 +1,6 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Entities namespace MediaBrowser.Model.Entities
{ {
[ProtoContract]
public class EmptyRequestResult public class EmptyRequestResult
{ {
} }

@ -1,26 +1,22 @@
using ProtoBuf; using System.Collections.Generic;
using System.Collections.Generic;
namespace MediaBrowser.Model.Entities namespace MediaBrowser.Model.Entities
{ {
/// <summary> /// <summary>
/// Used to hold information about a user's list of configured virtual folders /// Used to hold information about a user's list of configured virtual folders
/// </summary> /// </summary>
[ProtoContract]
public class VirtualFolderInfo public class VirtualFolderInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the locations. /// Gets or sets the locations.
/// </summary> /// </summary>
/// <value>The locations.</value> /// <value>The locations.</value>
[ProtoMember(2)]
public List<string> Locations { get; set; } public List<string> Locations { get; set; }
} }
} }

@ -1,39 +1,33 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Globalization namespace MediaBrowser.Model.Globalization
{ {
/// <summary> /// <summary>
/// Class CountryInfo /// Class CountryInfo
/// </summary> /// </summary>
[ProtoContract]
public class CountryInfo public class CountryInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the display name. /// Gets or sets the display name.
/// </summary> /// </summary>
/// <value>The display name.</value> /// <value>The display name.</value>
[ProtoMember(2)]
public string DisplayName { get; set; } public string DisplayName { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name of the two letter ISO region. /// Gets or sets the name of the two letter ISO region.
/// </summary> /// </summary>
/// <value>The name of the two letter ISO region.</value> /// <value>The name of the two letter ISO region.</value>
[ProtoMember(3)]
public string TwoLetterISORegionName { get; set; } public string TwoLetterISORegionName { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name of the three letter ISO region. /// Gets or sets the name of the three letter ISO region.
/// </summary> /// </summary>
/// <value>The name of the three letter ISO region.</value> /// <value>The name of the three letter ISO region.</value>
[ProtoMember(4)]
public string ThreeLetterISORegionName { get; set; } public string ThreeLetterISORegionName { get; set; }
} }
} }

@ -1,39 +1,33 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Globalization namespace MediaBrowser.Model.Globalization
{ {
/// <summary> /// <summary>
/// Class CultureDto /// Class CultureDto
/// </summary> /// </summary>
[ProtoContract]
public class CultureDto public class CultureDto
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the display name. /// Gets or sets the display name.
/// </summary> /// </summary>
/// <value>The display name.</value> /// <value>The display name.</value>
[ProtoMember(2)]
public string DisplayName { get; set; } public string DisplayName { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name of the two letter ISO language. /// Gets or sets the name of the two letter ISO language.
/// </summary> /// </summary>
/// <value>The name of the two letter ISO language.</value> /// <value>The name of the two letter ISO language.</value>
[ProtoMember(3)]
public string TwoLetterISOLanguageName { get; set; } public string TwoLetterISOLanguageName { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name of the three letter ISO language. /// Gets or sets the name of the three letter ISO language.
/// </summary> /// </summary>
/// <value>The name of the three letter ISO language.</value> /// <value>The name of the three letter ISO language.</value>
[ProtoMember(4)]
public string ThreeLetterISOLanguageName { get; set; } public string ThreeLetterISOLanguageName { get; set; }
} }
} }

@ -1,32 +1,27 @@
using ProtoBuf; 
namespace MediaBrowser.Model.IO namespace MediaBrowser.Model.IO
{ {
/// <summary> /// <summary>
/// Class FileSystemEntryInfo /// Class FileSystemEntryInfo
/// </summary> /// </summary>
[ProtoContract]
public class FileSystemEntryInfo public class FileSystemEntryInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the path. /// Gets or sets the path.
/// </summary> /// </summary>
/// <value>The path.</value> /// <value>The path.</value>
[ProtoMember(2)]
public string Path { get; set; } public string Path { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type. /// Gets or sets the type.
/// </summary> /// </summary>
/// <value>The type.</value> /// <value>The type.</value>
[ProtoMember(3)]
public FileSystemEntryType Type { get; set; } public FileSystemEntryType Type { get; set; }
} }

@ -83,7 +83,6 @@
<Compile Include="Net\NetworkShare.cs" /> <Compile Include="Net\NetworkShare.cs" />
<Compile Include="Net\NetworkShareType.cs" /> <Compile Include="Net\NetworkShareType.cs" />
<Compile Include="Serialization\IJsonSerializer.cs" /> <Compile Include="Serialization\IJsonSerializer.cs" />
<Compile Include="Serialization\IProtobufSerializer.cs" />
<Compile Include="Serialization\IXmlSerializer.cs" /> <Compile Include="Serialization\IXmlSerializer.cs" />
<Compile Include="Updates\CheckForUpdateResult.cs" /> <Compile Include="Updates\CheckForUpdateResult.cs" />
<Compile Include="Updates\PackageTargetSystem.cs" /> <Compile Include="Updates\PackageTargetSystem.cs" />
@ -129,9 +128,6 @@
<Reference Include="PropertyChanged"> <Reference Include="PropertyChanged">
<HintPath>..\packages\PropertyChanged.Fody.1.32.2.0\lib\portable-net4+sl4+wp7+win8\PropertyChanged.dll</HintPath> <HintPath>..\packages\PropertyChanged.Fody.1.32.2.0\lib\portable-net4+sl4+wp7+win8\PropertyChanged.dll</HintPath>
</Reference> </Reference>
<Reference Include="protobuf-net">
<HintPath>..\packages\protobuf-net.2.0.0.621\lib\portable-sl4+net40+wp7+windows8\protobuf-net.dll</HintPath>
</Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />

@ -1,5 +1,4 @@
using MediaBrowser.Model.Entities; using MediaBrowser.Model.Entities;
using ProtoBuf;
using System.Collections.Generic; using System.Collections.Generic;
namespace MediaBrowser.Model.MediaInfo namespace MediaBrowser.Model.MediaInfo
@ -7,35 +6,30 @@ namespace MediaBrowser.Model.MediaInfo
/// <summary> /// <summary>
/// Represents the result of BDInfo output /// Represents the result of BDInfo output
/// </summary> /// </summary>
[ProtoContract]
public class BlurayDiscInfo public class BlurayDiscInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the media streams. /// Gets or sets the media streams.
/// </summary> /// </summary>
/// <value>The media streams.</value> /// <value>The media streams.</value>
[ProtoMember(1)]
public List<MediaStream> MediaStreams { get; set; } public List<MediaStream> MediaStreams { get; set; }
/// <summary> /// <summary>
/// Gets or sets the run time ticks. /// Gets or sets the run time ticks.
/// </summary> /// </summary>
/// <value>The run time ticks.</value> /// <value>The run time ticks.</value>
[ProtoMember(2)]
public long? RunTimeTicks { get; set; } public long? RunTimeTicks { get; set; }
/// <summary> /// <summary>
/// Gets or sets the files. /// Gets or sets the files.
/// </summary> /// </summary>
/// <value>The files.</value> /// <value>The files.</value>
[ProtoMember(3)]
public List<string> Files { get; set; } public List<string> Files { get; set; }
/// <summary> /// <summary>
/// Gets or sets the chapters. /// Gets or sets the chapters.
/// </summary> /// </summary>
/// <value>The chapters.</value> /// <value>The chapters.</value>
[ProtoMember(4)]
public List<double> Chapters { get; set; } public List<double> Chapters { get; set; }
} }
} }

@ -1,5 +1,4 @@
using MediaBrowser.Model.Updates; using MediaBrowser.Model.Updates;
using ProtoBuf;
using System; using System;
namespace MediaBrowser.Model.Plugins namespace MediaBrowser.Model.Plugins
@ -7,56 +6,48 @@ namespace MediaBrowser.Model.Plugins
/// <summary> /// <summary>
/// This is a serializable stub class that is used by the api to provide information about installed plugins. /// This is a serializable stub class that is used by the api to provide information about installed plugins.
/// </summary> /// </summary>
[ProtoContract]
public class PluginInfo public class PluginInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the configuration date last modified. /// Gets or sets the configuration date last modified.
/// </summary> /// </summary>
/// <value>The configuration date last modified.</value> /// <value>The configuration date last modified.</value>
[ProtoMember(3)]
public DateTime ConfigurationDateLastModified { get; set; } public DateTime ConfigurationDateLastModified { get; set; }
/// <summary> /// <summary>
/// Gets or sets the version. /// Gets or sets the version.
/// </summary> /// </summary>
/// <value>The version.</value> /// <value>The version.</value>
[ProtoMember(4)]
public string Version { get; set; } public string Version { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name of the assembly file. /// Gets or sets the name of the assembly file.
/// </summary> /// </summary>
/// <value>The name of the assembly file.</value> /// <value>The name of the assembly file.</value>
[ProtoMember(5)]
public string AssemblyFileName { get; set; } public string AssemblyFileName { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name of the configuration file. /// Gets or sets the name of the configuration file.
/// </summary> /// </summary>
/// <value>The name of the configuration file.</value> /// <value>The name of the configuration file.</value>
[ProtoMember(6)]
public string ConfigurationFileName { get; set; } public string ConfigurationFileName { get; set; }
/// <summary> /// <summary>
/// Gets or sets the description. /// Gets or sets the description.
/// </summary> /// </summary>
/// <value>The description.</value> /// <value>The description.</value>
[ProtoMember(7)]
public string Description { get; set; } public string Description { get; set; }
/// <summary> /// <summary>
/// Gets or sets the unique id. /// Gets or sets the unique id.
/// </summary> /// </summary>
/// <value>The unique id.</value> /// <value>The unique id.</value>
[ProtoMember(9)]
public string Id { get; set; } public string Id { get; set; }
/// <summary> /// <summary>
@ -64,7 +55,6 @@ namespace MediaBrowser.Model.Plugins
/// compatible new version is released /// compatible new version is released
/// </summary> /// </summary>
/// <value><c>true</c> if [enable auto update]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [enable auto update]; otherwise, <c>false</c>.</value>
[ProtoMember(10)]
public bool EnableAutoUpdate { get; set; } public bool EnableAutoUpdate { get; set; }
/// <summary> /// <summary>
@ -72,14 +62,12 @@ namespace MediaBrowser.Model.Plugins
/// Options are: Dev, Beta or Release /// Options are: Dev, Beta or Release
/// </summary> /// </summary>
/// <value>The update class.</value> /// <value>The update class.</value>
[ProtoMember(11)]
public PackageVersionClass UpdateClass { get; set; } public PackageVersionClass UpdateClass { get; set; }
/// <summary> /// <summary>
/// Gets or sets the minimum required UI version. /// Gets or sets the minimum required UI version.
/// </summary> /// </summary>
/// <value>The minimum required UI version.</value> /// <value>The minimum required UI version.</value>
[ProtoMember(12)]
public string MinimumRequiredUIVersion { get; set; } public string MinimumRequiredUIVersion { get; set; }
} }
} }

@ -1,26 +1,22 @@
using MediaBrowser.Model.Dto; using MediaBrowser.Model.Dto;
using ProtoBuf;
namespace MediaBrowser.Model.Querying namespace MediaBrowser.Model.Querying
{ {
/// <summary> /// <summary>
/// Represents the result of a query for items /// Represents the result of a query for items
/// </summary> /// </summary>
[ProtoContract]
public class ItemsResult public class ItemsResult
{ {
/// <summary> /// <summary>
/// The set of items returned based on sorting, paging, etc /// The set of items returned based on sorting, paging, etc
/// </summary> /// </summary>
/// <value>The items.</value> /// <value>The items.</value>
[ProtoMember(1)]
public BaseItemDto[] Items { get; set; } public BaseItemDto[] Items { get; set; }
/// <summary> /// <summary>
/// The total number of records available /// The total number of records available
/// </summary> /// </summary>
/// <value>The total record count.</value> /// <value>The total record count.</value>
[ProtoMember(2)]
public int TotalRecordCount { get; set; } public int TotalRecordCount { get; set; }
} }
} }

@ -1,63 +0,0 @@
using System;
using System.IO;
namespace MediaBrowser.Model.Serialization
{
public interface IProtobufSerializer
{
/// <summary>
/// Serializes to stream.
/// </summary>
/// <param name="obj">The obj.</param>
/// <param name="stream">The stream.</param>
/// <exception cref="System.ArgumentNullException">obj</exception>
void SerializeToStream(object obj, Stream stream);
/// <summary>
/// Deserializes from stream.
/// </summary>
/// <param name="stream">The stream.</param>
/// <param name="type">The type.</param>
/// <returns>System.Object.</returns>
/// <exception cref="System.ArgumentNullException">stream</exception>
object DeserializeFromStream(Stream stream, Type type);
/// <summary>
/// Deserializes from stream.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="stream">The stream.</param>
/// <returns>``0.</returns>
T DeserializeFromStream<T>(Stream stream)
where T : class;
/// <summary>
/// Serializes to file.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="obj">The obj.</param>
/// <param name="file">The file.</param>
/// <exception cref="System.ArgumentNullException">file</exception>
void SerializeToFile<T>(T obj, string file);
/// <summary>
/// Deserializes from file.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="file">The file.</param>
/// <returns>``0.</returns>
/// <exception cref="System.ArgumentNullException">file</exception>
T DeserializeFromFile<T>(string file)
where T : class;
/// <summary>
/// Serializes to bytes.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="obj">The obj.</param>
/// <returns>System.Byte[][].</returns>
/// <exception cref="System.ArgumentNullException">obj</exception>
byte[] SerializeToBytes<T>(T obj)
where T : class;
}
}

@ -1,76 +1,64 @@
using MediaBrowser.Model.Updates; using MediaBrowser.Model.Updates;
using ProtoBuf;
using System;
namespace MediaBrowser.Model.System namespace MediaBrowser.Model.System
{ {
/// <summary> /// <summary>
/// Class SystemInfo /// Class SystemInfo
/// </summary> /// </summary>
[ProtoContract]
public class SystemInfo public class SystemInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the version. /// Gets or sets the version.
/// </summary> /// </summary>
/// <value>The version.</value> /// <value>The version.</value>
[ProtoMember(1)]
public string Version { get; set; } public string Version { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance has pending restart. /// Gets or sets a value indicating whether this instance has pending restart.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance has pending restart; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance has pending restart; otherwise, <c>false</c>.</value>
[ProtoMember(2)]
public bool HasPendingRestart { get; set; } public bool HasPendingRestart { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is network deployed. /// Gets or sets a value indicating whether this instance is network deployed.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is network deployed; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is network deployed; otherwise, <c>false</c>.</value>
[ProtoMember(3)]
public bool IsNetworkDeployed { get; set; } public bool IsNetworkDeployed { get; set; }
/// <summary> /// <summary>
/// Gets or sets the in progress installations. /// Gets or sets the in progress installations.
/// </summary> /// </summary>
/// <value>The in progress installations.</value> /// <value>The in progress installations.</value>
[ProtoMember(4)]
public InstallationInfo[] InProgressInstallations { get; set; } public InstallationInfo[] InProgressInstallations { get; set; }
/// <summary> /// <summary>
/// Gets or sets the web socket port number. /// Gets or sets the web socket port number.
/// </summary> /// </summary>
/// <value>The web socket port number.</value> /// <value>The web socket port number.</value>
[ProtoMember(5)]
public int WebSocketPortNumber { get; set; } public int WebSocketPortNumber { get; set; }
/// <summary> /// <summary>
/// Gets or sets the completed installations. /// Gets or sets the completed installations.
/// </summary> /// </summary>
/// <value>The completed installations.</value> /// <value>The completed installations.</value>
[ProtoMember(6)]
public InstallationInfo[] CompletedInstallations { get; set; } public InstallationInfo[] CompletedInstallations { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether [supports native web socket]. /// Gets or sets a value indicating whether [supports native web socket].
/// </summary> /// </summary>
/// <value><c>true</c> if [supports native web socket]; otherwise, <c>false</c>.</value> /// <value><c>true</c> if [supports native web socket]; otherwise, <c>false</c>.</value>
[ProtoMember(7)]
public bool SupportsNativeWebSocket { get; set; } public bool SupportsNativeWebSocket { get; set; }
/// <summary> /// <summary>
/// Gets or sets plugin assemblies that failed to load. /// Gets or sets plugin assemblies that failed to load.
/// </summary> /// </summary>
/// <value>The failed assembly loads.</value> /// <value>The failed assembly loads.</value>
[ProtoMember(8)]
public string[] FailedPluginAssemblies { get; set; } public string[] FailedPluginAssemblies { get; set; }
/// <summary> /// <summary>
/// Gets or sets the id. /// Gets or sets the id.
/// </summary> /// </summary>
/// <value>The id.</value> /// <value>The id.</value>
[ProtoMember(9)]
public string Id { get; set; } public string Id { get; set; }
} }
} }

@ -1,68 +1,58 @@
using ProtoBuf; using System;
using System;
namespace MediaBrowser.Model.Tasks namespace MediaBrowser.Model.Tasks
{ {
/// <summary> /// <summary>
/// Class TaskInfo /// Class TaskInfo
/// </summary> /// </summary>
[ProtoContract]
public class TaskInfo public class TaskInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the state of the task. /// Gets or sets the state of the task.
/// </summary> /// </summary>
/// <value>The state of the task.</value> /// <value>The state of the task.</value>
[ProtoMember(2)]
public TaskState State { get; set; } public TaskState State { get; set; }
/// <summary> /// <summary>
/// Gets or sets the progress. /// Gets or sets the progress.
/// </summary> /// </summary>
/// <value>The progress.</value> /// <value>The progress.</value>
[ProtoMember(3)]
public double? CurrentProgressPercentage { get; set; } public double? CurrentProgressPercentage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the id. /// Gets or sets the id.
/// </summary> /// </summary>
/// <value>The id.</value> /// <value>The id.</value>
[ProtoMember(4)]
public Guid Id { get; set; } public Guid Id { get; set; }
/// <summary> /// <summary>
/// Gets or sets the last execution result. /// Gets or sets the last execution result.
/// </summary> /// </summary>
/// <value>The last execution result.</value> /// <value>The last execution result.</value>
[ProtoMember(5)]
public TaskResult LastExecutionResult { get; set; } public TaskResult LastExecutionResult { get; set; }
/// <summary> /// <summary>
/// Gets or sets the triggers. /// Gets or sets the triggers.
/// </summary> /// </summary>
/// <value>The triggers.</value> /// <value>The triggers.</value>
[ProtoMember(6)]
public TaskTriggerInfo[] Triggers { get; set; } public TaskTriggerInfo[] Triggers { get; set; }
/// <summary> /// <summary>
/// Gets or sets the description. /// Gets or sets the description.
/// </summary> /// </summary>
/// <value>The description.</value> /// <value>The description.</value>
[ProtoMember(7)]
public string Description { get; set; } public string Description { get; set; }
/// <summary> /// <summary>
/// Gets or sets the category. /// Gets or sets the category.
/// </summary> /// </summary>
/// <value>The category.</value> /// <value>The category.</value>
[ProtoMember(8)]
public string Category { get; set; } public string Category { get; set; }
} }
} }

@ -1,47 +1,40 @@
using ProtoBuf; using System;
using System;
namespace MediaBrowser.Model.Tasks namespace MediaBrowser.Model.Tasks
{ {
/// <summary> /// <summary>
/// Class TaskExecutionInfo /// Class TaskExecutionInfo
/// </summary> /// </summary>
[ProtoContract]
public class TaskResult public class TaskResult
{ {
/// <summary> /// <summary>
/// Gets or sets the start time UTC. /// Gets or sets the start time UTC.
/// </summary> /// </summary>
/// <value>The start time UTC.</value> /// <value>The start time UTC.</value>
[ProtoMember(1)]
public DateTime StartTimeUtc { get; set; } public DateTime StartTimeUtc { get; set; }
/// <summary> /// <summary>
/// Gets or sets the end time UTC. /// Gets or sets the end time UTC.
/// </summary> /// </summary>
/// <value>The end time UTC.</value> /// <value>The end time UTC.</value>
[ProtoMember(2)]
public DateTime EndTimeUtc { get; set; } public DateTime EndTimeUtc { get; set; }
/// <summary> /// <summary>
/// Gets or sets the status. /// Gets or sets the status.
/// </summary> /// </summary>
/// <value>The status.</value> /// <value>The status.</value>
[ProtoMember(3)]
public TaskCompletionStatus Status { get; set; } public TaskCompletionStatus Status { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(4)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the id. /// Gets or sets the id.
/// </summary> /// </summary>
/// <value>The id.</value> /// <value>The id.</value>
[ProtoMember(5)]
public Guid Id { get; set; } public Guid Id { get; set; }
} }
} }

@ -1,47 +1,40 @@
using ProtoBuf; using System;
using System;
namespace MediaBrowser.Model.Tasks namespace MediaBrowser.Model.Tasks
{ {
/// <summary> /// <summary>
/// Class TaskTriggerInfo /// Class TaskTriggerInfo
/// </summary> /// </summary>
[ProtoContract]
public class TaskTriggerInfo public class TaskTriggerInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the type. /// Gets or sets the type.
/// </summary> /// </summary>
/// <value>The type.</value> /// <value>The type.</value>
[ProtoMember(1)]
public string Type { get; set; } public string Type { get; set; }
/// <summary> /// <summary>
/// Gets or sets the time of day. /// Gets or sets the time of day.
/// </summary> /// </summary>
/// <value>The time of day.</value> /// <value>The time of day.</value>
[ProtoMember(2)]
public long? TimeOfDayTicks { get; set; } public long? TimeOfDayTicks { get; set; }
/// <summary> /// <summary>
/// Gets or sets the interval. /// Gets or sets the interval.
/// </summary> /// </summary>
/// <value>The interval.</value> /// <value>The interval.</value>
[ProtoMember(3)]
public long? IntervalTicks { get; set; } public long? IntervalTicks { get; set; }
/// <summary> /// <summary>
/// Gets or sets the system event. /// Gets or sets the system event.
/// </summary> /// </summary>
/// <value>The system event.</value> /// <value>The system event.</value>
[ProtoMember(4)]
public SystemEvent? SystemEvent { get; set; } public SystemEvent? SystemEvent { get; set; }
/// <summary> /// <summary>
/// Gets or sets the day of week. /// Gets or sets the day of week.
/// </summary> /// </summary>
/// <value>The day of week.</value> /// <value>The day of week.</value>
[ProtoMember(5)]
public DayOfWeek? DayOfWeek { get; set; } public DayOfWeek? DayOfWeek { get; set; }
} }
} }

@ -1,47 +1,40 @@
using ProtoBuf; using System;
using System;
namespace MediaBrowser.Model.Updates namespace MediaBrowser.Model.Updates
{ {
/// <summary> /// <summary>
/// Class InstallationInfo /// Class InstallationInfo
/// </summary> /// </summary>
[ProtoContract]
public class InstallationInfo public class InstallationInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the id. /// Gets or sets the id.
/// </summary> /// </summary>
/// <value>The id.</value> /// <value>The id.</value>
[ProtoMember(1)]
public Guid Id { get; set; } public Guid Id { get; set; }
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(2)]
public string Name { get; set; } public string Name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the version. /// Gets or sets the version.
/// </summary> /// </summary>
/// <value>The version.</value> /// <value>The version.</value>
[ProtoMember(3)]
public string Version { get; set; } public string Version { get; set; }
/// <summary> /// <summary>
/// Gets or sets the update class. /// Gets or sets the update class.
/// </summary> /// </summary>
/// <value>The update class.</value> /// <value>The update class.</value>
[ProtoMember(4)]
public PackageVersionClass UpdateClass { get; set; } public PackageVersionClass UpdateClass { get; set; }
/// <summary> /// <summary>
/// Gets or sets the percent complete. /// Gets or sets the percent complete.
/// </summary> /// </summary>
/// <value>The percent complete.</value> /// <value>The percent complete.</value>
[ProtoMember(5)]
public double? PercentComplete { get; set; } public double? PercentComplete { get; set; }
} }
} }

@ -1,5 +1,4 @@
using System; using System;
using ProtoBuf;
using System.Collections.Generic; using System.Collections.Generic;
namespace MediaBrowser.Model.Updates namespace MediaBrowser.Model.Updates
@ -7,140 +6,120 @@ namespace MediaBrowser.Model.Updates
/// <summary> /// <summary>
/// Class PackageInfo /// Class PackageInfo
/// </summary> /// </summary>
[ProtoContract]
public class PackageInfo public class PackageInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string name { get; set; } public string name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the short description. /// Gets or sets the short description.
/// </summary> /// </summary>
/// <value>The short description.</value> /// <value>The short description.</value>
[ProtoMember(2)]
public string shortDescription { get; set; } public string shortDescription { get; set; }
/// <summary> /// <summary>
/// Gets or sets the overview. /// Gets or sets the overview.
/// </summary> /// </summary>
/// <value>The overview.</value> /// <value>The overview.</value>
[ProtoMember(3)]
public string overview { get; set; } public string overview { get; set; }
/// <summary> /// <summary>
/// Gets or sets a value indicating whether this instance is premium. /// Gets or sets a value indicating whether this instance is premium.
/// </summary> /// </summary>
/// <value><c>true</c> if this instance is premium; otherwise, <c>false</c>.</value> /// <value><c>true</c> if this instance is premium; otherwise, <c>false</c>.</value>
[ProtoMember(4)]
public bool isPremium { get; set; } public bool isPremium { get; set; }
/// <summary> /// <summary>
/// Gets or sets the rich desc URL. /// Gets or sets the rich desc URL.
/// </summary> /// </summary>
/// <value>The rich desc URL.</value> /// <value>The rich desc URL.</value>
[ProtoMember(5)]
public string richDescUrl { get; set; } public string richDescUrl { get; set; }
/// <summary> /// <summary>
/// Gets or sets the thumb image. /// Gets or sets the thumb image.
/// </summary> /// </summary>
/// <value>The thumb image.</value> /// <value>The thumb image.</value>
[ProtoMember(6)]
public string thumbImage { get; set; } public string thumbImage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the preview image. /// Gets or sets the preview image.
/// </summary> /// </summary>
/// <value>The preview image.</value> /// <value>The preview image.</value>
[ProtoMember(7)]
public string previewImage { get; set; } public string previewImage { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type. /// Gets or sets the type.
/// </summary> /// </summary>
/// <value>The type.</value> /// <value>The type.</value>
[ProtoMember(8)]
public PackageType type { get; set; } public PackageType type { get; set; }
/// <summary> /// <summary>
/// Gets or sets the target filename. /// Gets or sets the target filename.
/// </summary> /// </summary>
/// <value>The target filename.</value> /// <value>The target filename.</value>
[ProtoMember(9)]
public string targetFilename { get; set; } public string targetFilename { get; set; }
/// <summary> /// <summary>
/// Gets or sets the owner. /// Gets or sets the owner.
/// </summary> /// </summary>
/// <value>The owner.</value> /// <value>The owner.</value>
[ProtoMember(10)]
public string owner { get; set; } public string owner { get; set; }
/// <summary> /// <summary>
/// Gets or sets the category. /// Gets or sets the category.
/// </summary> /// </summary>
/// <value>The category.</value> /// <value>The category.</value>
[ProtoMember(11)]
public string category { get; set; } public string category { get; set; }
/// <summary> /// <summary>
/// Gets or sets the catalog tile color. /// Gets or sets the catalog tile color.
/// </summary> /// </summary>
/// <value>The owner.</value> /// <value>The owner.</value>
[ProtoMember(12)]
public string tileColor { get; set; } public string tileColor { get; set; }
/// <summary> /// <summary>
/// Gets or sets the feature id of this package (if premium). /// Gets or sets the feature id of this package (if premium).
/// </summary> /// </summary>
/// <value>The feature id.</value> /// <value>The feature id.</value>
[ProtoMember(13)]
public string featureId { get; set; } public string featureId { get; set; }
/// <summary> /// <summary>
/// Gets or sets the registration info for this package (if premium). /// Gets or sets the registration info for this package (if premium).
/// </summary> /// </summary>
/// <value>The registration info.</value> /// <value>The registration info.</value>
[ProtoMember(14)]
public string regInfo { get; set; } public string regInfo { get; set; }
/// <summary> /// <summary>
/// Gets or sets the price for this package (if premium). /// Gets or sets the price for this package (if premium).
/// </summary> /// </summary>
/// <value>The price.</value> /// <value>The price.</value>
[ProtoMember(15)]
public float price { get; set; } public float price { get; set; }
/// <summary> /// <summary>
/// Gets or sets the target system for this plug-in (Server, MBTheater, MBClassic). /// Gets or sets the target system for this plug-in (Server, MBTheater, MBClassic).
/// </summary> /// </summary>
/// <value>The target system.</value> /// <value>The target system.</value>
[ProtoMember(16)]
public PackageTargetSystem targetSystem { get; set; } public PackageTargetSystem targetSystem { get; set; }
/// <summary> /// <summary>
/// Gets or sets whether or not this package is registered. /// Gets or sets whether or not this package is registered.
/// </summary> /// </summary>
/// <value>True if registered.</value> /// <value>True if registered.</value>
[ProtoMember(17)]
public bool isRegistered { get; set; } public bool isRegistered { get; set; }
/// <summary> /// <summary>
/// Gets or sets the expiration date for this package. /// Gets or sets the expiration date for this package.
/// </summary> /// </summary>
/// <value>Expiration Date.</value> /// <value>Expiration Date.</value>
[ProtoMember(18)]
public DateTime expDate { get; set; } public DateTime expDate { get; set; }
/// <summary> /// <summary>
/// Gets or sets the versions. /// Gets or sets the versions.
/// </summary> /// </summary>
/// <value>The versions.</value> /// <value>The versions.</value>
[ProtoMember(19)]
public List<PackageVersionInfo> versions { get; set; } public List<PackageVersionInfo> versions { get; set; }
} }
} }

@ -1,5 +1,4 @@
using MediaBrowser.Model.Extensions; using MediaBrowser.Model.Extensions;
using ProtoBuf;
using System; using System;
using System.Runtime.Serialization; using System.Runtime.Serialization;
@ -8,21 +7,18 @@ namespace MediaBrowser.Model.Updates
/// <summary> /// <summary>
/// Class PackageVersionInfo /// Class PackageVersionInfo
/// </summary> /// </summary>
[ProtoContract]
public class PackageVersionInfo public class PackageVersionInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the name. /// Gets or sets the name.
/// </summary> /// </summary>
/// <value>The name.</value> /// <value>The name.</value>
[ProtoMember(1)]
public string name { get; set; } public string name { get; set; }
/// <summary> /// <summary>
/// Gets or sets the version STR. /// Gets or sets the version STR.
/// </summary> /// </summary>
/// <value>The version STR.</value> /// <value>The version STR.</value>
[ProtoMember(2)]
public string versionStr { get; set; } public string versionStr { get; set; }
/// <summary> /// <summary>
@ -44,42 +40,36 @@ namespace MediaBrowser.Model.Updates
/// Gets or sets the classification. /// Gets or sets the classification.
/// </summary> /// </summary>
/// <value>The classification.</value> /// <value>The classification.</value>
[ProtoMember(4)]
public PackageVersionClass classification { get; set; } public PackageVersionClass classification { get; set; }
/// <summary> /// <summary>
/// Gets or sets the description. /// Gets or sets the description.
/// </summary> /// </summary>
/// <value>The description.</value> /// <value>The description.</value>
[ProtoMember(5)]
public string description { get; set; } public string description { get; set; }
/// <summary> /// <summary>
/// Gets or sets the required version STR. /// Gets or sets the required version STR.
/// </summary> /// </summary>
/// <value>The required version STR.</value> /// <value>The required version STR.</value>
[ProtoMember(6)]
public string requiredVersionStr { get; set; } public string requiredVersionStr { get; set; }
/// <summary> /// <summary>
/// Gets or sets the source URL. /// Gets or sets the source URL.
/// </summary> /// </summary>
/// <value>The source URL.</value> /// <value>The source URL.</value>
[ProtoMember(8)]
public string sourceUrl { get; set; } public string sourceUrl { get; set; }
/// <summary> /// <summary>
/// Gets or sets the source URL. /// Gets or sets the source URL.
/// </summary> /// </summary>
/// <value>The source URL.</value> /// <value>The source URL.</value>
[ProtoMember(9)]
public Guid checksum { get; set; } public Guid checksum { get; set; }
/// <summary> /// <summary>
/// Gets or sets the target filename. /// Gets or sets the target filename.
/// </summary> /// </summary>
/// <value>The target filename.</value> /// <value>The target filename.</value>
[ProtoMember(10)]
public string targetFilename { get; set; } public string targetFilename { get; set; }
} }
} }

@ -1,54 +1,46 @@
using System; using System;
using ProtoBuf;
namespace MediaBrowser.Model.Weather namespace MediaBrowser.Model.Weather
{ {
/// <summary> /// <summary>
/// Represents a weather forecast for a specific date /// Represents a weather forecast for a specific date
/// </summary> /// </summary>
[ProtoContract]
public class WeatherForecast public class WeatherForecast
{ {
/// <summary> /// <summary>
/// Gets or sets the date. /// Gets or sets the date.
/// </summary> /// </summary>
/// <value>The date.</value> /// <value>The date.</value>
[ProtoMember(1)]
public DateTime Date { get; set; } public DateTime Date { get; set; }
/// <summary> /// <summary>
/// Gets or sets the high temperature fahrenheit. /// Gets or sets the high temperature fahrenheit.
/// </summary> /// </summary>
/// <value>The high temperature fahrenheit.</value> /// <value>The high temperature fahrenheit.</value>
[ProtoMember(2)]
public int HighTemperatureFahrenheit { get; set; } public int HighTemperatureFahrenheit { get; set; }
/// <summary> /// <summary>
/// Gets or sets the low temperature fahrenheit. /// Gets or sets the low temperature fahrenheit.
/// </summary> /// </summary>
/// <value>The low temperature fahrenheit.</value> /// <value>The low temperature fahrenheit.</value>
[ProtoMember(3)]
public int LowTemperatureFahrenheit { get; set; } public int LowTemperatureFahrenheit { get; set; }
/// <summary> /// <summary>
/// Gets or sets the high temperature celsius. /// Gets or sets the high temperature celsius.
/// </summary> /// </summary>
/// <value>The high temperature celsius.</value> /// <value>The high temperature celsius.</value>
[ProtoMember(4)]
public int HighTemperatureCelsius { get; set; } public int HighTemperatureCelsius { get; set; }
/// <summary> /// <summary>
/// Gets or sets the low temperature celsius. /// Gets or sets the low temperature celsius.
/// </summary> /// </summary>
/// <value>The low temperature celsius.</value> /// <value>The low temperature celsius.</value>
[ProtoMember(5)]
public int LowTemperatureCelsius { get; set; } public int LowTemperatureCelsius { get; set; }
/// <summary> /// <summary>
/// Gets or sets the condition. /// Gets or sets the condition.
/// </summary> /// </summary>
/// <value>The condition.</value> /// <value>The condition.</value>
[ProtoMember(6)]
public WeatherConditions Condition { get; set; } public WeatherConditions Condition { get; set; }
} }
} }

@ -1,25 +1,21 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Weather namespace MediaBrowser.Model.Weather
{ {
/// <summary> /// <summary>
/// Class WeatherInfo /// Class WeatherInfo
/// </summary> /// </summary>
[ProtoContract]
public class WeatherInfo public class WeatherInfo
{ {
/// <summary> /// <summary>
/// Gets or sets the current weather. /// Gets or sets the current weather.
/// </summary> /// </summary>
/// <value>The current weather.</value> /// <value>The current weather.</value>
[ProtoMember(1)]
public WeatherStatus CurrentWeather { get; set; } public WeatherStatus CurrentWeather { get; set; }
/// <summary> /// <summary>
/// Gets or sets the forecasts. /// Gets or sets the forecasts.
/// </summary> /// </summary>
/// <value>The forecasts.</value> /// <value>The forecasts.</value>
[ProtoMember(2)]
public WeatherForecast[] Forecasts { get; set; } public WeatherForecast[] Forecasts { get; set; }
/// <summary> /// <summary>

@ -1,39 +1,33 @@
using ProtoBuf; 
namespace MediaBrowser.Model.Weather namespace MediaBrowser.Model.Weather
{ {
/// <summary> /// <summary>
/// Represents the current weather status /// Represents the current weather status
/// </summary> /// </summary>
[ProtoContract]
public class WeatherStatus public class WeatherStatus
{ {
/// <summary> /// <summary>
/// Gets or sets the temperature fahrenheit. /// Gets or sets the temperature fahrenheit.
/// </summary> /// </summary>
/// <value>The temperature fahrenheit.</value> /// <value>The temperature fahrenheit.</value>
[ProtoMember(1)]
public int TemperatureFahrenheit { get; set; } public int TemperatureFahrenheit { get; set; }
/// <summary> /// <summary>
/// Gets or sets the temperature celsius. /// Gets or sets the temperature celsius.
/// </summary> /// </summary>
/// <value>The temperature celsius.</value> /// <value>The temperature celsius.</value>
[ProtoMember(2)]
public int TemperatureCelsius { get; set; } public int TemperatureCelsius { get; set; }
/// <summary> /// <summary>
/// Gets or sets the humidity. /// Gets or sets the humidity.
/// </summary> /// </summary>
/// <value>The humidity.</value> /// <value>The humidity.</value>
[ProtoMember(3)]
public int Humidity { get; set; } public int Humidity { get; set; }
/// <summary> /// <summary>
/// Gets or sets the condition. /// Gets or sets the condition.
/// </summary> /// </summary>
/// <value>The condition.</value> /// <value>The condition.</value>
[ProtoMember(4)]
public WeatherConditions Condition { get; set; } public WeatherConditions Condition { get; set; }
} }

@ -46,7 +46,7 @@ namespace MediaBrowser.Server.Implementations.Sqlite
} }
/// <summary> /// <summary>
/// The _protobuf serializer /// The _json serializer
/// </summary> /// </summary>
private readonly IJsonSerializer _jsonSerializer; private readonly IJsonSerializer _jsonSerializer;
@ -61,7 +61,11 @@ namespace MediaBrowser.Server.Implementations.Sqlite
/// <param name="appPaths">The app paths.</param> /// <param name="appPaths">The app paths.</param>
/// <param name="jsonSerializer">The json serializer.</param> /// <param name="jsonSerializer">The json serializer.</param>
/// <param name="logManager">The log manager.</param> /// <param name="logManager">The log manager.</param>
/// <exception cref="System.ArgumentNullException">protobufSerializer</exception> /// <exception cref="System.ArgumentNullException">
/// jsonSerializer
/// or
/// appPaths
/// </exception>
public SQLiteDisplayPreferencesRepository(IApplicationPaths appPaths, IJsonSerializer jsonSerializer, ILogManager logManager) public SQLiteDisplayPreferencesRepository(IApplicationPaths appPaths, IJsonSerializer jsonSerializer, ILogManager logManager)
: base(logManager) : base(logManager)
{ {

@ -61,7 +61,11 @@ namespace MediaBrowser.Server.Implementations.Sqlite
/// <param name="appPaths">The app paths.</param> /// <param name="appPaths">The app paths.</param>
/// <param name="jsonSerializer">The json serializer.</param> /// <param name="jsonSerializer">The json serializer.</param>
/// <param name="logManager">The log manager.</param> /// <param name="logManager">The log manager.</param>
/// <exception cref="System.ArgumentNullException">protobufSerializer</exception> /// <exception cref="System.ArgumentNullException">
/// jsonSerializer
/// or
/// appPaths
/// </exception>
public SQLiteUserDataRepository(IApplicationPaths appPaths, IJsonSerializer jsonSerializer, ILogManager logManager) public SQLiteUserDataRepository(IApplicationPaths appPaths, IJsonSerializer jsonSerializer, ILogManager logManager)
: base(logManager) : base(logManager)
{ {

Loading…
Cancel
Save