moved the http server to common, added more http handlers

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-07-12 23:50:50 -04:00
parent 572103cdfe
commit 5f5f2838b1
60 changed files with 12955 additions and 209 deletions

View File

@@ -0,0 +1,24 @@
using System.Collections.Generic;
using MediaBrowser.Common.Net;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Api.HttpHandlers
{
class InProgressItemsHandler : ItemListHandler
{
public InProgressItemsHandler(RequestContext ctx)
: base(ctx)
{
}
protected override IEnumerable<BaseItem> ItemsToSerialize
{
get
{
Folder parent = ApiService.GetItemById(QueryString["id"]) as Folder;
return ApiService.GetInProgressItems(parent);
}
}
}
}