From c85f2957d9b68bf99dbd23efb2b8421845efd157 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 6 Mar 2014 00:23:06 -0500 Subject: updated nuget --- MediaBrowser.Model/ApiClient/IApiClient.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Model/ApiClient/IApiClient.cs') diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index d4d2a81240..2a965114bf 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -346,8 +346,15 @@ namespace MediaBrowser.Model.ApiClient /// /// The query. /// Task{ItemsResult}. - Task GetNextUpAsync(NextUpQuery query); + Task GetNextUpEpisodesAsync(NextUpQuery query); + /// + /// Gets the upcoming episodes asynchronous. + /// + /// The query. + /// Task{ItemsResult}. + Task GetUpcomingEpisodesAsync(NextUpQuery query); + /// /// Gets a genre /// -- cgit v1.2.3 From 1ead63b0d1a532cf828a4ed7c5310eef9c255740 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 8 Mar 2014 13:17:05 -0500 Subject: add column sorting to reports --- MediaBrowser.Model/ApiClient/IApiClient.cs | 63 ++++++++++++++++++++++ MediaBrowser.Model/Querying/ItemSortBy.cs | 3 ++ .../MediaBrowser.Server.Implementations.csproj | 7 ++- .../Sorting/GameSystemComparer.cs | 54 +++++++++++++++++++ .../Sorting/PlayersComparer.cs | 46 ++++++++++++++++ .../Sorting/StudioComparer.cs | 30 +++++++++++ Nuget/MediaBrowser.Common.Internal.nuspec | 4 +- Nuget/MediaBrowser.Common.nuspec | 2 +- Nuget/MediaBrowser.Server.Core.nuspec | 4 +- 9 files changed, 206 insertions(+), 7 deletions(-) create mode 100644 MediaBrowser.Server.Implementations/Sorting/GameSystemComparer.cs create mode 100644 MediaBrowser.Server.Implementations/Sorting/PlayersComparer.cs create mode 100644 MediaBrowser.Server.Implementations/Sorting/StudioComparer.cs (limited to 'MediaBrowser.Model/ApiClient/IApiClient.cs') diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index 2a965114bf..a0e527a99d 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -1016,6 +1016,15 @@ namespace MediaBrowser.Model.ApiClient /// Task{QueryResult{ProgramInfoDto}}. Task> GetLiveTvProgramsAsync(ProgramQuery query, CancellationToken cancellationToken); + /// + /// Gets the live tv program asynchronous. + /// + /// The identifier. + /// The user identifier. + /// The cancellation token. + /// Task{ProgramInfoDto}. + Task GetLiveTvProgramAsync(string id, string userId, CancellationToken cancellationToken); + /// /// Gets the recommended live tv programs asynchronous. /// @@ -1023,6 +1032,38 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task{QueryResult{ProgramInfoDto}}. Task> GetRecommendedLiveTvProgramsAsync(RecommendedProgramQuery query, CancellationToken cancellationToken); + + /// + /// Creates the live tv timer asynchronous. + /// + /// The timer. + /// The cancellation token. + /// Task. + Task CreateLiveTvTimerAsync(TimerInfoDto timer, CancellationToken cancellationToken); + + /// + /// Updates the live tv timer asynchronous. + /// + /// The timer. + /// The cancellation token. + /// Task. + Task UpdateLiveTvTimerAsync(TimerInfoDto timer, CancellationToken cancellationToken); + + /// + /// Creates the live tv series timer asynchronous. + /// + /// The timer. + /// The cancellation token. + /// Task. + Task CreateLiveTvSeriesTimerAsync(SeriesTimerInfoDto timer, CancellationToken cancellationToken); + + /// + /// Updates the live tv series timer asynchronous. + /// + /// The timer. + /// The cancellation token. + /// Task. + Task UpdateLiveTvSeriesTimerAsync(SeriesTimerInfoDto timer, CancellationToken cancellationToken); /// /// Gets the live tv timer asynchronous. @@ -1071,5 +1112,27 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task. Task DeleteLiveTvRecordingAsync(string id, CancellationToken cancellationToken); + + /// + /// Gets the default timer information. + /// + /// The cancellation token. + /// Task{SeriesTimerInfoDto}. + Task GetDefaultLiveTvTimerInfo(CancellationToken cancellationToken); + + /// + /// Gets the live tv guide information. + /// + /// The cancellation token. + /// Task{GuideInfo}. + Task GetLiveTvGuideInfo(CancellationToken cancellationToken); + + /// + /// Gets the default timer information. + /// + /// The program identifier. + /// The cancellation token. + /// Task{SeriesTimerInfoDto}. + Task GetDefaultLiveTvTimerInfo(string programId, CancellationToken cancellationToken); } } \ No newline at end of file diff --git a/MediaBrowser.Model/Querying/ItemSortBy.cs b/MediaBrowser.Model/Querying/ItemSortBy.cs index 09b8f0e18f..b07db396a0 100644 --- a/MediaBrowser.Model/Querying/ItemSortBy.cs +++ b/MediaBrowser.Model/Querying/ItemSortBy.cs @@ -86,5 +86,8 @@ namespace MediaBrowser.Model.Querying public const string VideoBitRate = "VideoBitRate"; public const string AirTime = "AirTime"; public const string Metascore = "Metascore"; + public const string Studio = "Studio"; + public const string Players = "Players"; + public const string GameSystem = "GameSystem"; } } diff --git a/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj b/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj index a0df2c23ac..78902f0dcc 100644 --- a/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj +++ b/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj @@ -225,6 +225,7 @@ + @@ -233,6 +234,7 @@ + @@ -246,6 +248,7 @@ + @@ -376,10 +379,10 @@ swagger-ui\swagger-ui.min.js PreserveNewest - + Always - + Always diff --git a/MediaBrowser.Server.Implementations/Sorting/GameSystemComparer.cs b/MediaBrowser.Server.Implementations/Sorting/GameSystemComparer.cs new file mode 100644 index 0000000000..eb83b98e97 --- /dev/null +++ b/MediaBrowser.Server.Implementations/Sorting/GameSystemComparer.cs @@ -0,0 +1,54 @@ +using MediaBrowser.Controller.Entities; +using MediaBrowser.Controller.Sorting; +using MediaBrowser.Model.Querying; +using System; + +namespace MediaBrowser.Server.Implementations.Sorting +{ + public class GameSystemComparer : IBaseItemComparer + { + /// + /// Compares the specified x. + /// + /// The x. + /// The y. + /// System.Int32. + public int Compare(BaseItem x, BaseItem y) + { + return string.Compare(GetValue(x), GetValue(y), StringComparison.CurrentCultureIgnoreCase); + } + + /// + /// Gets the value. + /// + /// The x. + /// System.String. + private string GetValue(BaseItem x) + { + var game = x as Game; + + if (game != null) + { + return game.GameSystem; + } + + var system = x as GameSystem; + + if (system != null) + { + return system.GameSystemName; + } + + return string.Empty; + } + + /// + /// Gets the name. + /// + /// The name. + public string Name + { + get { return ItemSortBy.GameSystem; } + } + } +} diff --git a/MediaBrowser.Server.Implementations/Sorting/PlayersComparer.cs b/MediaBrowser.Server.Implementations/Sorting/PlayersComparer.cs new file mode 100644 index 0000000000..5bcd080d7b --- /dev/null +++ b/MediaBrowser.Server.Implementations/Sorting/PlayersComparer.cs @@ -0,0 +1,46 @@ +using MediaBrowser.Controller.Entities; +using MediaBrowser.Controller.Sorting; +using MediaBrowser.Model.Querying; + +namespace MediaBrowser.Server.Implementations.Sorting +{ + public class PlayersComparer : IBaseItemComparer + { + /// + /// Compares the specified x. + /// + /// The x. + /// The y. + /// System.Int32. + public int Compare(BaseItem x, BaseItem y) + { + return GetValue(x).CompareTo(GetValue(y)); + } + + /// + /// Gets the value. + /// + /// The x. + /// System.String. + private int GetValue(BaseItem x) + { + var game = x as Game; + + if (game != null) + { + return game.PlayersSupported ?? 0; + } + + return 0; + } + + /// + /// Gets the name. + /// + /// The name. + public string Name + { + get { return ItemSortBy.Players; } + } + } +} diff --git a/MediaBrowser.Server.Implementations/Sorting/StudioComparer.cs b/MediaBrowser.Server.Implementations/Sorting/StudioComparer.cs new file mode 100644 index 0000000000..83ab4dfc26 --- /dev/null +++ b/MediaBrowser.Server.Implementations/Sorting/StudioComparer.cs @@ -0,0 +1,30 @@ +using MediaBrowser.Controller.Entities; +using MediaBrowser.Controller.Sorting; +using MediaBrowser.Model.Querying; +using System.Linq; + +namespace MediaBrowser.Server.Implementations.Sorting +{ + public class StudioComparer : IBaseItemComparer + { + /// + /// Compares the specified x. + /// + /// The x. + /// The y. + /// System.Int32. + public int Compare(BaseItem x, BaseItem y) + { + return AlphanumComparator.CompareValues(x.Studios.FirstOrDefault() ?? string.Empty, y.Studios.FirstOrDefault() ?? string.Empty); + } + + /// + /// Gets the name. + /// + /// The name. + public string Name + { + get { return ItemSortBy.Studio; } + } + } +} diff --git a/Nuget/MediaBrowser.Common.Internal.nuspec b/Nuget/MediaBrowser.Common.Internal.nuspec index 7bd20e7d4d..3e548e6252 100644 --- a/Nuget/MediaBrowser.Common.Internal.nuspec +++ b/Nuget/MediaBrowser.Common.Internal.nuspec @@ -2,7 +2,7 @@ MediaBrowser.Common.Internal - 3.0.336 + 3.0.339 MediaBrowser.Common.Internal Luke ebr,Luke,scottisafool @@ -12,7 +12,7 @@ Contains common components shared by Media Browser Theater and Media Browser Server. Not intended for plugin developer consumption. Copyright © Media Browser 2013 - + diff --git a/Nuget/MediaBrowser.Common.nuspec b/Nuget/MediaBrowser.Common.nuspec index f68a427414..5b81a046e5 100644 --- a/Nuget/MediaBrowser.Common.nuspec +++ b/Nuget/MediaBrowser.Common.nuspec @@ -2,7 +2,7 @@ MediaBrowser.Common - 3.0.336 + 3.0.339 MediaBrowser.Common Media Browser Team ebr,Luke,scottisafool diff --git a/Nuget/MediaBrowser.Server.Core.nuspec b/Nuget/MediaBrowser.Server.Core.nuspec index 97f4c90a03..bf8bfd1575 100644 --- a/Nuget/MediaBrowser.Server.Core.nuspec +++ b/Nuget/MediaBrowser.Server.Core.nuspec @@ -2,7 +2,7 @@ MediaBrowser.Server.Core - 3.0.336 + 3.0.339 Media Browser.Server.Core Media Browser Team ebr,Luke,scottisafool @@ -12,7 +12,7 @@ Contains core components required to build plugins for Media Browser Server. Copyright © Media Browser 2013 - + -- cgit v1.2.3 From 1c90611cf3c08829831f2ff8e071b884fc44acff Mon Sep 17 00:00:00 2001 From: 7illusions Date: Sun, 9 Mar 2014 08:33:48 +0100 Subject: Updated IApicClient With UserId --- MediaBrowser.Model/ApiClient/IApiClient.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'MediaBrowser.Model/ApiClient/IApiClient.cs') diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index a0e527a99d..2924898693 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -572,17 +572,18 @@ namespace MediaBrowser.Model.ApiClient /// Instructs antoher client to browse to a library item. /// /// The session id. + /// The controlling user id. /// The id of the item to browse to. /// The name of the item to browse to. /// The type of the item to browse to. /// Optional ui context (movies, music, tv, games, etc). The client is free to ignore this. /// Task. - Task SendBrowseCommandAsync(string sessionId, string itemId, string itemName, string itemType, string context); + Task SendBrowseCommandAsync(string sessionId, string userId, string itemId, string itemName, string itemType, string context); /// /// Sends the playstate command async. /// - /// The session id. + /// The session id. /// The request. /// Task. Task SendPlaystateCommandAsync(string sessionId, PlaystateRequest request); -- cgit v1.2.3 From b7bcc2450694105de9f9fc8cc07d2cfc4d9d7c96 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 13 Mar 2014 05:18:32 -0400 Subject: Undoing changes --- MediaBrowser.Api/SessionsService.cs | 51 ++-------------------- .../MediaBrowser.Model.Portable.csproj | 7 +-- MediaBrowser.Model/ApiClient/IApiClient.cs | 27 ++++++------ MediaBrowser.Model/Session/BrowseRequest.cs | 8 +--- MediaBrowser.Model/Session/MessageCommand.cs | 9 ++-- MediaBrowser.Model/Session/PlayRequest.cs | 14 +----- MediaBrowser.Model/Session/PlaystateCommand.cs | 5 +-- 7 files changed, 25 insertions(+), 96 deletions(-) (limited to 'MediaBrowser.Model/ApiClient/IApiClient.cs') diff --git a/MediaBrowser.Api/SessionsService.cs b/MediaBrowser.Api/SessionsService.cs index 562e455259..b8ca70ba5e 100644 --- a/MediaBrowser.Api/SessionsService.cs +++ b/MediaBrowser.Api/SessionsService.cs @@ -46,14 +46,6 @@ namespace MediaBrowser.Api [ApiMember(Name = "Id", Description = "Session Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")] public Guid Id { get; set; } - /// - /// Gets or sets the UserId. - /// - /// The id. - [ApiMember(Name = "UserId", Description = "The controlling User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "POST")] - public Guid UserId { get; set; } - //TODO IsRequired = false shall be changed to true once the clients has been updated and the new ApiClient is in use - /// /// Artist, Genre, Studio, Person, or any kind of BaseItem /// @@ -96,14 +88,6 @@ namespace MediaBrowser.Api [ApiMember(Name = "Id", Description = "Session Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")] public Guid Id { get; set; } - /// - /// Gets or sets the UserId. - /// - /// The id. - [ApiMember(Name = "UserId", Description = "The controlling User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "POST")] - public Guid UserId { get; set; } - //TODO IsRequired = false shall be changed to true once the clients has been updated and the new ApiClient is in use - /// /// Artist, Genre, Studio, Person, or any kind of BaseItem /// @@ -137,14 +121,6 @@ namespace MediaBrowser.Api [ApiMember(Name = "Id", Description = "Session Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")] public Guid Id { get; set; } - /// - /// Gets or sets the UserId. - /// - /// The id. - [ApiMember(Name = "UserId", Description = "The controlling User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "POST")] - public Guid UserId { get; set; } - //TODO IsRequired = false shall be changed to true once the clients has been updated and the new ApiClient is in use - /// /// Gets or sets the position to seek to /// @@ -170,14 +146,6 @@ namespace MediaBrowser.Api [ApiMember(Name = "Id", Description = "Session Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")] public Guid Id { get; set; } - /// - /// Gets or sets the UserId. - /// - /// The id. - [ApiMember(Name = "UserId", Description = "The controlling User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "POST")] - public Guid UserId { get; set; } - //TODO IsRequired = false shall be changed to true once the clients has been updated and the new ApiClient is in use - /// /// Gets or sets the command. /// @@ -197,14 +165,6 @@ namespace MediaBrowser.Api [ApiMember(Name = "Id", Description = "Session Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")] public Guid Id { get; set; } - /// - /// Gets or sets the UserId. - /// - /// The id. - [ApiMember(Name = "UserId", Description = "The controlling User Id", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "POST")] - public Guid UserId { get; set; } - //TODO IsRequired = false shall be changed to true once the clients has been updated and the new ApiClient is in use - [ApiMember(Name = "Text", Description = "The message text.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")] public string Text { get; set; } @@ -251,7 +211,7 @@ namespace MediaBrowser.Api [ApiMember(Name = "PlayableMediaTypes", Description = "A list of playable media types, comma delimited. Audio, Video, Book, Game, Photo.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")] public string PlayableMediaTypes { get; set; } } - + /// /// Class SessionsService /// @@ -310,10 +270,9 @@ namespace MediaBrowser.Api } public void Post(SendPlaystateCommand request) - { + { var command = new PlaystateRequest { - UserId = request.UserId, Command = request.Command, SeekPositionTicks = request.SeekPositionTicks }; @@ -331,7 +290,6 @@ namespace MediaBrowser.Api { var command = new BrowseRequest { - UserId = request.UserId, Context = request.Context, ItemId = request.ItemId, ItemName = request.ItemName, @@ -363,7 +321,6 @@ namespace MediaBrowser.Api var command = new MessageCommand { Header = string.IsNullOrEmpty(request.Header) ? "Message from Server" : request.Header, - UserId = request.UserId, TimeoutMs = request.TimeoutMs, Text = request.Text }; @@ -382,7 +339,7 @@ namespace MediaBrowser.Api var command = new PlayRequest { ItemIds = request.ItemIds.Split(',').ToArray(), - UserId = request.UserId, + PlayCommand = request.PlayCommand, StartPositionTicks = request.StartPositionTicks }; @@ -411,4 +368,4 @@ namespace MediaBrowser.Api .ToList(); } } -} +} \ No newline at end of file diff --git a/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj b/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj index 6c05f8ee53..c8df3931d9 100644 --- a/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj +++ b/MediaBrowser.Model.Portable/MediaBrowser.Model.Portable.csproj @@ -11,17 +11,12 @@ MediaBrowser.Model MediaBrowser.Model v4.0 - Profile158 + Profile104 512 {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} ..\ true ..\packages\Fody.1.19.1.0 - - - - - 4.0 true diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index 2924898693..46d3dcc3f5 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -244,7 +244,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// Task{ItemsResult}. Task GetSeasonsAsync(SeasonQuery query); - + /// /// Queries for items /// @@ -354,7 +354,7 @@ namespace MediaBrowser.Model.ApiClient /// The query. /// Task{ItemsResult}. Task GetUpcomingEpisodesAsync(NextUpQuery query); - + /// /// Gets a genre /// @@ -572,18 +572,17 @@ namespace MediaBrowser.Model.ApiClient /// Instructs antoher client to browse to a library item. /// /// The session id. - /// The controlling user id. /// The id of the item to browse to. /// The name of the item to browse to. /// The type of the item to browse to. /// Optional ui context (movies, music, tv, games, etc). The client is free to ignore this. /// Task. - Task SendBrowseCommandAsync(string sessionId, string userId, string itemId, string itemName, string itemType, string context); + Task SendBrowseCommandAsync(string sessionId, string itemId, string itemName, string itemType, string context); /// /// Sends the playstate command async. /// - /// The session id. + /// The session id. /// The request. /// Task. Task SendPlaystateCommandAsync(string sessionId, PlaystateRequest request); @@ -780,7 +779,7 @@ namespace MediaBrowser.Model.ApiClient /// The options. /// System.String. string GetImageUrl(ProgramInfoDto item, ImageOptions options); - + /// /// Gets an image url that can be used to download an image from the api /// @@ -910,7 +909,7 @@ namespace MediaBrowser.Model.ApiClient /// The options. /// System.String. string GetThumbImageUrl(BaseItemDto item, ImageOptions options); - + /// /// Gets the url needed to stream an audio file /// @@ -966,7 +965,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task{ChannelInfoDto}. Task GetLiveTvChannelAsync(string id, string userId, CancellationToken cancellationToken); - + /// /// Gets the live tv recordings asynchronous. /// @@ -983,7 +982,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task{RecordingInfoDto}. Task GetLiveTvRecordingAsync(string id, string userId, CancellationToken cancellationToken); - + /// /// Gets the live tv recording groups asynchronous. /// @@ -1000,7 +999,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task{RecordingGroupDto}. Task GetLiveTvRecordingGroupAsync(string id, string userId, CancellationToken cancellationToken); - + /// /// Gets the live tv timers asynchronous. /// @@ -1065,7 +1064,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task. Task UpdateLiveTvSeriesTimerAsync(SeriesTimerInfoDto timer, CancellationToken cancellationToken); - + /// /// Gets the live tv timer asynchronous. /// @@ -1073,7 +1072,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task{TimerInfoDto}. Task GetLiveTvTimerAsync(string id, CancellationToken cancellationToken); - + /// /// Gets the live tv series timers asynchronous. /// @@ -1105,7 +1104,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task. Task CancelLiveTvSeriesTimerAsync(string id, CancellationToken cancellationToken); - + /// /// Deletes the live tv recording asynchronous. /// @@ -1127,7 +1126,7 @@ namespace MediaBrowser.Model.ApiClient /// The cancellation token. /// Task{GuideInfo}. Task GetLiveTvGuideInfo(CancellationToken cancellationToken); - + /// /// Gets the default timer information. /// diff --git a/MediaBrowser.Model/Session/BrowseRequest.cs b/MediaBrowser.Model/Session/BrowseRequest.cs index 03241860c8..e2cdcc1b28 100644 --- a/MediaBrowser.Model/Session/BrowseRequest.cs +++ b/MediaBrowser.Model/Session/BrowseRequest.cs @@ -1,6 +1,4 @@  -using System; - namespace MediaBrowser.Model.Session { /// @@ -14,8 +12,6 @@ namespace MediaBrowser.Model.Session /// The type of the item. public string ItemType { get; set; } - public Guid UserId { get; set; } - /// /// Gets or sets the item id. /// @@ -27,7 +23,7 @@ namespace MediaBrowser.Model.Session /// /// The name of the item. public string ItemName { get; set; } - + /// /// Gets or sets the context (Movies, Music, Tv, etc) /// Applicable to genres, studios and persons only because the context of items and artists can be inferred. @@ -44,4 +40,4 @@ namespace MediaBrowser.Model.Session public const string TvShows = "TvShows"; public const string Games = "Games"; } -} +} \ No newline at end of file diff --git a/MediaBrowser.Model/Session/MessageCommand.cs b/MediaBrowser.Model/Session/MessageCommand.cs index 754c057faa..b028765ed2 100644 --- a/MediaBrowser.Model/Session/MessageCommand.cs +++ b/MediaBrowser.Model/Session/MessageCommand.cs @@ -1,15 +1,12 @@  -using System; namespace MediaBrowser.Model.Session { public class MessageCommand - { - public Guid UserId { get; set; } - + { public string Header { get; set; } - + public string Text { get; set; } public long? TimeoutMs { get; set; } } -} +} \ No newline at end of file diff --git a/MediaBrowser.Model/Session/PlayRequest.cs b/MediaBrowser.Model/Session/PlayRequest.cs index 239fb65729..57f6c37f57 100644 --- a/MediaBrowser.Model/Session/PlayRequest.cs +++ b/MediaBrowser.Model/Session/PlayRequest.cs @@ -1,5 +1,4 @@  -using System; namespace MediaBrowser.Model.Session { /// @@ -7,11 +6,6 @@ namespace MediaBrowser.Model.Session /// public class PlayRequest { - public PlayRequest() - { - - } - /// /// Gets or sets the item ids. /// @@ -29,12 +23,6 @@ namespace MediaBrowser.Model.Session /// /// The play command. public PlayCommand PlayCommand { get; set; } - - /// - /// Gets or sets the play command. - /// - /// The play command. - public Guid UserId { get; set; } } /// @@ -55,4 +43,4 @@ namespace MediaBrowser.Model.Session /// PlayLast } -} +} \ No newline at end of file diff --git a/MediaBrowser.Model/Session/PlaystateCommand.cs b/MediaBrowser.Model/Session/PlaystateCommand.cs index 68e80c4521..918f4f70f4 100644 --- a/MediaBrowser.Model/Session/PlaystateCommand.cs +++ b/MediaBrowser.Model/Session/PlaystateCommand.cs @@ -1,5 +1,4 @@  -using System; namespace MediaBrowser.Model.Session { /// @@ -35,10 +34,8 @@ namespace MediaBrowser.Model.Session public class PlaystateRequest { - public Guid UserId { get; set; } - public PlaystateCommand Command { get; set; } public long? SeekPositionTicks { get; set; } } -} +} \ No newline at end of file -- cgit v1.2.3