aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/HttpHandlers/StudiosHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/HttpHandlers/StudiosHandler.cs')
-rw-r--r--MediaBrowser.Api/HttpHandlers/StudiosHandler.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Api/HttpHandlers/StudiosHandler.cs b/MediaBrowser.Api/HttpHandlers/StudiosHandler.cs
index a381af15f..b1be2cad2 100644
--- a/MediaBrowser.Api/HttpHandlers/StudiosHandler.cs
+++ b/MediaBrowser.Api/HttpHandlers/StudiosHandler.cs
@@ -1,17 +1,19 @@
using System;
+using System.Collections.Generic;
using MediaBrowser.Common.Net.Handlers;
using MediaBrowser.Controller;
+using MediaBrowser.Model.DTO;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Api.HttpHandlers
{
- public class StudiosHandler : BaseJsonHandler
+ public class StudiosHandler : BaseJsonHandler<IEnumerable<CategoryInfo<Studio>>>
{
- protected override object GetObjectToSerialize()
+ protected override IEnumerable<CategoryInfo<Studio>> GetObjectToSerialize()
{
Folder parent = ApiService.GetItemById(QueryString["id"]) as Folder;
Guid userId = Guid.Parse(QueryString["userid"]);
-
+
return Kernel.Instance.GetAllStudios(parent, userId);
}
}