aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/DTO
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-10 00:36:39 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-10 00:36:39 -0500
commitb1be6f1d73272fb629ff453f6890766faeccf9de (patch)
tree0fc8655dd48f442290e7b764889cd0a3bfef63c4 /MediaBrowser.Model/DTO
parent31d079f1baea895b5cb0f1a737140ab94dc9a4fe (diff)
minor namespace changes in the model
Diffstat (limited to 'MediaBrowser.Model/DTO')
-rw-r--r--MediaBrowser.Model/DTO/ItemFields.cs114
-rw-r--r--MediaBrowser.Model/DTO/ItemFilter.cs38
-rw-r--r--MediaBrowser.Model/DTO/ItemQuery.cs125
-rw-r--r--MediaBrowser.Model/DTO/ItemSortBy.cs54
-rw-r--r--MediaBrowser.Model/DTO/ItemsResult.cs25
-rw-r--r--MediaBrowser.Model/DTO/MediaType.cs22
6 files changed, 0 insertions, 378 deletions
diff --git a/MediaBrowser.Model/DTO/ItemFields.cs b/MediaBrowser.Model/DTO/ItemFields.cs
deleted file mode 100644
index 981afe894..000000000
--- a/MediaBrowser.Model/DTO/ItemFields.cs
+++ /dev/null
@@ -1,114 +0,0 @@
-
-namespace MediaBrowser.Model.Dto
-{
- /// <summary>
- /// Used to control the data that gets attached to DtoBaseItems
- /// </summary>
- public enum ItemFields
- {
- /// <summary>
- /// Audio properties
- /// </summary>
- AudioInfo,
-
- /// <summary>
- /// The chapters
- /// </summary>
- Chapters,
-
- /// <summary>
- /// The date created of the item
- /// </summary>
- DateCreated,
-
- /// <summary>
- /// The display media type
- /// </summary>
- DisplayMediaType,
-
- /// <summary>
- /// Item display preferences
- /// </summary>
- DisplayPreferences,
-
- /// <summary>
- /// Genres
- /// </summary>
- Genres,
-
- /// <summary>
- /// Child count, recursive child count, etc
- /// </summary>
- ItemCounts,
-
- /// <summary>
- /// The fields that the server supports indexing on
- /// </summary>
- IndexOptions,
-
- /// <summary>
- /// The item overview
- /// </summary>
- Overview,
-
- /// <summary>
- /// The id of the item's parent
- /// </summary>
- ParentId,
-
- /// <summary>
- /// The physical path of the item
- /// </summary>
- Path,
-
- /// <summary>
- /// The list of people for the item
- /// </summary>
- People,
-
- /// <summary>
- /// Imdb, tmdb, etc
- /// </summary>
- ProviderIds,
-
- /// <summary>
- /// The aspect ratio of the primary image
- /// </summary>
- PrimaryImageAspectRatio,
-
- /// <summary>
- /// AirDays, status, SeriesName, etc
- /// </summary>
- SeriesInfo,
-
- /// <summary>
- /// The sort name of the item
- /// </summary>
- SortName,
-
- /// <summary>
- /// The studios of the item
- /// </summary>
- Studios,
-
- /// <summary>
- /// The taglines of the item
- /// </summary>
- Taglines,
-
- /// <summary>
- /// The trailer url of the item
- /// </summary>
- TrailerUrls,
-
- /// <summary>
- /// The user data of the item
- /// </summary>
- UserData,
-
- /// <summary>
- /// The media streams
- /// </summary>
- MediaStreams
- }
-}
diff --git a/MediaBrowser.Model/DTO/ItemFilter.cs b/MediaBrowser.Model/DTO/ItemFilter.cs
deleted file mode 100644
index 038acc587..000000000
--- a/MediaBrowser.Model/DTO/ItemFilter.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-
-namespace MediaBrowser.Model.Dto
-{
- /// <summary>
- /// Enum ItemFilter
- /// </summary>
- public enum ItemFilter
- {
- /// <summary>
- /// The item is a folder
- /// </summary>
- IsFolder = 1,
- /// <summary>
- /// The item is not folder
- /// </summary>
- IsNotFolder = 2,
- /// <summary>
- /// The item is unplayed
- /// </summary>
- IsUnplayed = 3,
- /// <summary>
- /// The item is played
- /// </summary>
- IsPlayed = 4,
- /// <summary>
- /// The item is a favorite
- /// </summary>
- IsFavorite = 5,
- /// <summary>
- /// The item is recently added
- /// </summary>
- IsRecentlyAdded = 6,
- /// <summary>
- /// The item is resumable
- /// </summary>
- IsResumable = 7
- }
-}
diff --git a/MediaBrowser.Model/DTO/ItemQuery.cs b/MediaBrowser.Model/DTO/ItemQuery.cs
deleted file mode 100644
index 085a872b1..000000000
--- a/MediaBrowser.Model/DTO/ItemQuery.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-using MediaBrowser.Model.Entities;
-using System;
-
-namespace MediaBrowser.Model.Dto
-{
- /// <summary>
- /// Contains all the possible parameters that can be used to query for items
- /// </summary>
- public class ItemQuery
- {
- /// <summary>
- /// The user to localize search results for
- /// </summary>
- /// <value>The user id.</value>
- public Guid UserId { get; set; }
-
- /// <summary>
- /// Specify this to localize the search to a specific item or folder. Omit to use the root.
- /// </summary>
- /// <value>The parent id.</value>
- public string ParentId { get; set; }
-
- /// <summary>
- /// Skips over a given number of items within the results. Use for paging.
- /// </summary>
- /// <value>The start index.</value>
- public int? StartIndex { get; set; }
-
- /// <summary>
- /// The maximum number of items to return
- /// </summary>
- /// <value>The limit.</value>
- public int? Limit { get; set; }
-
- /// <summary>
- /// What to sort the results by
- /// </summary>
- /// <value>The sort by.</value>
- public string[] SortBy { get; set; }
-
- /// <summary>
- /// The sort order to return results with
- /// </summary>
- /// <value>The sort order.</value>
- public SortOrder? SortOrder { get; set; }
-
- /// <summary>
- /// Filters to apply to the results
- /// </summary>
- /// <value>The filters.</value>
- public ItemFilter[] Filters { get; set; }
-
- /// <summary>
- /// Fields to return within the items, in addition to basic information
- /// </summary>
- /// <value>The fields.</value>
- public ItemFields[] Fields { get; set; }
-
- /// <summary>
- /// Whether or not to perform the query recursively
- /// </summary>
- /// <value><c>true</c> if recursive; otherwise, <c>false</c>.</value>
- public bool Recursive { get; set; }
-
- /// <summary>
- /// Limit results to items containing specific genres
- /// </summary>
- /// <value>The genres.</value>
- public string[] Genres { get; set; }
-
- /// <summary>
- /// Limit results to items containing specific studios
- /// </summary>
- /// <value>The studios.</value>
- public string[] Studios { get; set; }
-
- /// <summary>
- /// Gets or sets the exclude item types.
- /// </summary>
- /// <value>The exclude item types.</value>
- public string[] ExcludeItemTypes { get; set; }
-
- /// <summary>
- /// Gets or sets the include item types.
- /// </summary>
- /// <value>The include item types.</value>
- public string[] IncludeItemTypes { get; set; }
-
- /// <summary>
- /// Limit results to items containing specific years
- /// </summary>
- /// <value>The years.</value>
- public int[] Years { get; set; }
-
- /// <summary>
- /// Limit results to items containing a specific person
- /// </summary>
- /// <value>The person.</value>
- public string Person { get; set; }
-
- /// <summary>
- /// If the Person filter is used, this can also be used to restrict to a specific person type
- /// </summary>
- /// <value>The type of the person.</value>
- public string PersonType { get; set; }
-
- /// <summary>
- /// Search characters used to find items
- /// </summary>
- /// <value>The index by.</value>
- public string SearchTerm { get; set; }
-
- /// <summary>
- /// The dynamic, localized index function name
- /// </summary>
- /// <value>The index by.</value>
- public string IndexBy { get; set; }
-
- /// <summary>
- /// Gets or sets the image types.
- /// </summary>
- /// <value>The image types.</value>
- public ImageType[] ImageTypes { get; set; }
- }
-}
diff --git a/MediaBrowser.Model/DTO/ItemSortBy.cs b/MediaBrowser.Model/DTO/ItemSortBy.cs
deleted file mode 100644
index 141690a55..000000000
--- a/MediaBrowser.Model/DTO/ItemSortBy.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-
-namespace MediaBrowser.Model.Dto
-{
- /// <summary>
- /// These represent sort orders that are known by the core
- /// </summary>
- public static class ItemSortBy
- {
- /// <summary>
- /// The album
- /// </summary>
- public const string Album = "Album";
- /// <summary>
- /// The album artist
- /// </summary>
- public const string AlbumArtist = "AlbumArtist";
- /// <summary>
- /// The artist
- /// </summary>
- public const string Artist = "Artist";
- /// <summary>
- /// The date created
- /// </summary>
- public const string DateCreated = "DateCreated";
- /// <summary>
- /// The date played
- /// </summary>
- public const string DatePlayed = "DatePlayed";
- /// <summary>
- /// The premiere date
- /// </summary>
- public const string PremiereDate = "PremiereDate";
- /// <summary>
- /// The sort name
- /// </summary>
- public const string SortName = "SortName";
- /// <summary>
- /// The random
- /// </summary>
- public const string Random = "Random";
- /// <summary>
- /// The runtime
- /// </summary>
- public const string Runtime = "Runtime";
- /// <summary>
- /// The community rating
- /// </summary>
- public const string CommunityRating = "CommunityRating";
- /// <summary>
- /// The production year
- /// </summary>
- public const string ProductionYear = "ProductionYear";
- }
-}
diff --git a/MediaBrowser.Model/DTO/ItemsResult.cs b/MediaBrowser.Model/DTO/ItemsResult.cs
deleted file mode 100644
index 623e04fdd..000000000
--- a/MediaBrowser.Model/DTO/ItemsResult.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using ProtoBuf;
-
-namespace MediaBrowser.Model.Dto
-{
- /// <summary>
- /// Represents the result of a query for items
- /// </summary>
- [ProtoContract]
- public class ItemsResult
- {
- /// <summary>
- /// The set of items returned based on sorting, paging, etc
- /// </summary>
- /// <value>The items.</value>
- [ProtoMember(1)]
- public BaseItemDto[] Items { get; set; }
-
- /// <summary>
- /// The total number of records available
- /// </summary>
- /// <value>The total record count.</value>
- [ProtoMember(2)]
- public int TotalRecordCount { get; set; }
- }
-}
diff --git a/MediaBrowser.Model/DTO/MediaType.cs b/MediaBrowser.Model/DTO/MediaType.cs
deleted file mode 100644
index eae97e616..000000000
--- a/MediaBrowser.Model/DTO/MediaType.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-
-namespace MediaBrowser.Model.Dto
-{
- /// <summary>
- /// Enum MediaType
- /// </summary>
- public enum MediaType
- {
- /// <summary>
- /// The audio
- /// </summary>
- Audio,
- /// <summary>
- /// The game
- /// </summary>
- Game,
- /// <summary>
- /// The video
- /// </summary>
- Video
- }
-}