aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-15 09:20:29 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-15 09:20:29 -0400
commit3f1af19ce7702a3310842f812563e580b2ca4408 (patch)
tree8890b7f227ac45d260cee48ebc32619d472fea5e /MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs
parentd5cf6d59a30cc989d7e33c6eb6ac378e6339b2f3 (diff)
Re-worked provider id's, api client, moved people to the api item wrapper and added server error handling
Diffstat (limited to 'MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs')
-rw-r--r--MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs b/MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs
index 06c3ea86d..f9d3536b6 100644
--- a/MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs
+++ b/MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs
@@ -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);
}
}
}