Re-worked provider id's, api client, moved people to the api item wrapper and added server error handling

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-15 09:20:29 -04:00
parent d5cf6d59a3
commit 3f1af19ce7
36 changed files with 486 additions and 385 deletions

View File

@@ -1,18 +1,16 @@
using System;
using MediaBrowser.Common.Net.Handlers;
using MediaBrowser.Controller;
namespace MediaBrowser.Api.HttpHandlers
{
public class UserConfigurationHandler : JsonHandler
public class UserConfigurationHandler : BaseJsonHandler
{
protected override object ObjectToSerialize
protected override object GetObjectToSerialize()
{
get
{
Guid userId = Guid.Parse(QueryString["userid"]);
Guid userId = Guid.Parse(QueryString["userid"]);
return Kernel.Instance.GetUserConfiguration(userId);
}
return Kernel.Instance.GetUserConfiguration(userId);
}
}
}