From 6c7175e33d258ff2e65735f68cb05f110a8d2306 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Mon, 23 Jul 2012 11:05:30 -0400 Subject: Added an api call to pull down user configuration --- .../HttpHandlers/UserConfigurationHandler.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs (limited to 'MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs') diff --git a/MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs b/MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs new file mode 100644 index 000000000..faace9c31 --- /dev/null +++ b/MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs @@ -0,0 +1,18 @@ +using System; +using MediaBrowser.Controller; + +namespace MediaBrowser.Api.HttpHandlers +{ + public class UserConfigurationHandler : JsonHandler + { + protected override object ObjectToSerialize + { + get + { + Guid userId = Guid.Parse(QueryString["userid"]); + + return Kernel.Instance.ConfigurationController.GetUserConfiguration(userId); + } + } + } +} -- cgit v1.2.3