minor namespace changes in the model

This commit is contained in:
LukePulverenti
2013-03-10 00:36:39 -05:00
parent 31d079f1ba
commit b1be6f1d73
28 changed files with 42 additions and 45 deletions

View File

@@ -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
}
}

View File

@@ -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
}
}

View File

@@ -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; }
}
}

View File

@@ -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";
}
}

View File

@@ -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; }
}
}

View File

@@ -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
}
}