2012-07-16 16:50:44 +00:00
|
|
|
|
using System;
|
2012-07-20 02:22:44 +00:00
|
|
|
|
using MediaBrowser.Controller;
|
2012-07-16 16:50:44 +00:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Api.HttpHandlers
|
|
|
|
|
{
|
|
|
|
|
public class StudiosHandler : JsonHandler
|
|
|
|
|
{
|
|
|
|
|
protected sealed override object ObjectToSerialize
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
Folder parent = ApiService.GetItemById(QueryString["id"]) as Folder;
|
|
|
|
|
Guid userId = Guid.Parse(QueryString["userid"]);
|
|
|
|
|
|
2012-07-20 02:22:44 +00:00
|
|
|
|
return Kernel.Instance.GetAllStudios(parent, userId);
|
2012-07-16 16:50:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|