From 0bfb755a3895d26144a69eb7f0ea02bba655a15f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 27 Apr 2013 09:05:33 -0400 Subject: search hints progress --- MediaBrowser.Model/MediaBrowser.Model.csproj | 1 + MediaBrowser.Model/Search/SearchHint.cs | 106 ++++++++++++++++++++++++++ MediaBrowser.Model/Search/SearchHintResult.cs | 69 ++--------------- 3 files changed, 114 insertions(+), 62 deletions(-) create mode 100644 MediaBrowser.Model/Search/SearchHint.cs (limited to 'MediaBrowser.Model') diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index cd54ec7c80..75725e589f 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -86,6 +86,7 @@ + diff --git a/MediaBrowser.Model/Search/SearchHint.cs b/MediaBrowser.Model/Search/SearchHint.cs new file mode 100644 index 0000000000..1e16b04921 --- /dev/null +++ b/MediaBrowser.Model/Search/SearchHint.cs @@ -0,0 +1,106 @@ +using System; + +namespace MediaBrowser.Model.Search +{ + /// + /// Class SearchHintResult + /// + public class SearchHint + { + /// + /// Gets or sets the item id. + /// + /// The item id. + public string ItemId { get; set; } + + /// + /// Gets or sets the name. + /// + /// The name. + public string Name { get; set; } + + /// + /// Gets or sets the matched term. + /// + /// The matched term. + public string MatchedTerm { get; set; } + + /// + /// Gets or sets the index number. + /// + /// The index number. + public int? IndexNumber { get; set; } + + /// + /// Gets or sets the parent index number. + /// + /// The parent index number. + public int? ParentIndexNumber { get; set; } + + /// + /// Gets or sets the image tag. + /// + /// The image tag. + public Guid? PrimaryImageTag { get; set; } + + /// + /// Gets or sets the type. + /// + /// The type. + public string Type { get; set; } + + /// + /// Gets or sets the run time ticks. + /// + /// The run time ticks. + public long? RunTimeTicks { get; set; } + + /// + /// Gets or sets the type of the media. + /// + /// The type of the media. + public string MediaType { get; set; } + + /// + /// Gets or sets the display type of the media. + /// + /// The display type of the media. + public string DisplayMediaType { get; set; } + + /// + /// Gets or sets the series. + /// + /// The series. + public string Series { get; set; } + + /// + /// Gets or sets the album. + /// + /// The album. + public string Album { get; set; } + + /// + /// Gets or sets the album artist. + /// + /// The album artist. + public string AlbumArtist { get; set; } + + /// + /// Gets or sets the artists. + /// + /// The artists. + public string[] Artists { get; set; } + + /// + /// Gets or sets the song count. + /// + /// The song count. + public int? SongCount { get; set; } + + /// + /// Gets or sets the episode count. + /// + /// The episode count. + public int? EpisodeCount { get; set; } + } +} diff --git a/MediaBrowser.Model/Search/SearchHintResult.cs b/MediaBrowser.Model/Search/SearchHintResult.cs index 2142ac3f7d..372528f827 100644 --- a/MediaBrowser.Model/Search/SearchHintResult.cs +++ b/MediaBrowser.Model/Search/SearchHintResult.cs @@ -1,5 +1,4 @@ -using System; - + namespace MediaBrowser.Model.Search { /// @@ -8,69 +7,15 @@ namespace MediaBrowser.Model.Search public class SearchHintResult { /// - /// Gets or sets the item id. - /// - /// The item id. - public string ItemId { get; set; } - - /// - /// Gets or sets the name. - /// - /// The name. - public string Name { get; set; } - - /// - /// Gets or sets the index number. - /// - /// The index number. - public int? IndexNumber { get; set; } - - /// - /// Gets or sets the parent index number. - /// - /// The parent index number. - public int? ParentIndexNumber { get; set; } - - /// - /// Gets or sets the image tag. - /// - /// The image tag. - public Guid? PrimaryImageTag { get; set; } - - /// - /// Gets or sets the type. - /// - /// The type. - public string Type { get; set; } - - /// - /// Gets or sets the type of the media. - /// - /// The type of the media. - public string MediaType { get; set; } - - /// - /// Gets or sets the series. - /// - /// The series. - public string Series { get; set; } - - /// - /// Gets or sets the album. - /// - /// The album. - public string Album { get; set; } - - /// - /// Gets or sets the album artist. + /// Gets or sets the search hints. /// - /// The album artist. - public string AlbumArtist { get; set; } + /// The search hints. + public SearchHint[] SearchHints { get; set; } /// - /// Gets or sets the artists. + /// Gets or sets the total record count. /// - /// The artists. - public string[] Artists { get; set; } + /// The total record count. + public int TotalRecordCount { get; set; } } } -- cgit v1.2.3 From 46cf7d93e9727f6cf9b1b1d229804a89fdb6b74c Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 27 Apr 2013 11:29:02 -0400 Subject: made StreamOptions concrete --- MediaBrowser.Model/DTO/StreamOptions.cs | 2 +- Nuget/MediaBrowser.Common.Internal.nuspec | 4 ++-- Nuget/MediaBrowser.Common.nuspec | 2 +- Nuget/MediaBrowser.Server.Core.nuspec | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'MediaBrowser.Model') diff --git a/MediaBrowser.Model/DTO/StreamOptions.cs b/MediaBrowser.Model/DTO/StreamOptions.cs index 5281d336d0..d9c34f9b1a 100644 --- a/MediaBrowser.Model/DTO/StreamOptions.cs +++ b/MediaBrowser.Model/DTO/StreamOptions.cs @@ -82,7 +82,7 @@ /// /// Class StreamOptions /// - public abstract class StreamOptions + public class StreamOptions { /// /// Gets or sets the audio bit rate. diff --git a/Nuget/MediaBrowser.Common.Internal.nuspec b/Nuget/MediaBrowser.Common.Internal.nuspec index 8ab49d17ae..cfcb93a521 100644 --- a/Nuget/MediaBrowser.Common.Internal.nuspec +++ b/Nuget/MediaBrowser.Common.Internal.nuspec @@ -2,7 +2,7 @@ MediaBrowser.Common.Internal - 3.0.84 + 3.0.85 MediaBrowser.Common.Internal Luke ebr,Luke,scottisafool @@ -12,7 +12,7 @@ Contains common components shared by Media Browser Theatre 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 01276f3cd1..a5aba4b78e 100644 --- a/Nuget/MediaBrowser.Common.nuspec +++ b/Nuget/MediaBrowser.Common.nuspec @@ -2,7 +2,7 @@ MediaBrowser.Common - 3.0.84 + 3.0.85 MediaBrowser.Common Media Browser Team ebr,Luke,scottisafool diff --git a/Nuget/MediaBrowser.Server.Core.nuspec b/Nuget/MediaBrowser.Server.Core.nuspec index 50b626a74b..85e6eae88b 100644 --- a/Nuget/MediaBrowser.Server.Core.nuspec +++ b/Nuget/MediaBrowser.Server.Core.nuspec @@ -2,7 +2,7 @@ MediaBrowser.Server.Core - 3.0.84 + 3.0.85 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