jellyfin/MediaBrowser.Api/HttpHandlers/UserConfigurationHandler.cs
2012-08-17 09:16:50 -04:00

18 lines
496 B
C#

using System;
using MediaBrowser.Common.Net.Handlers;
using MediaBrowser.Controller;
using MediaBrowser.Model.Configuration;
namespace MediaBrowser.Api.HttpHandlers
{
public class UserConfigurationHandler : BaseJsonHandler<UserConfiguration>
{
protected override UserConfiguration GetObjectToSerialize()
{
Guid userId = Guid.Parse(QueryString["userid"]);
return Kernel.Instance.GetUserConfiguration(userId);
}
}
}