2012-07-13 03:50:50 +00:00
|
|
|
|
using System.Collections.Generic;
|
2012-07-16 16:50:44 +00:00
|
|
|
|
using MediaBrowser.Controller;
|
2012-07-13 03:50:50 +00:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Api.HttpHandlers
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets all items within a Genre
|
|
|
|
|
/// </summary>
|
2012-08-14 16:06:46 +00:00
|
|
|
|
public class ItemsWithGenreHandler : ItemListHandler
|
2012-07-13 03:50:50 +00:00
|
|
|
|
{
|
|
|
|
|
protected override IEnumerable<BaseItem> ItemsToSerialize
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
Folder parent = ApiService.GetItemById(QueryString["id"]) as Folder;
|
|
|
|
|
|
2012-07-16 16:50:44 +00:00
|
|
|
|
return Kernel.Instance.GetItemsWithGenre(parent, QueryString["name"], UserId);
|
2012-07-13 03:50:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|