Made BaseJsonHandler strongly typed. Moved DTO entities to their own DTO namespace in Model.

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-17 09:16:50 -04:00
parent 8a2e0badae
commit 5c094afd7e
26 changed files with 85 additions and 74 deletions

View File

@@ -1,12 +1,13 @@
using System;
using MediaBrowser.Common.Net.Handlers;
using MediaBrowser.Controller;
using MediaBrowser.Model.Configuration;
namespace MediaBrowser.Api.HttpHandlers
{
public class UserConfigurationHandler : BaseJsonHandler
public class UserConfigurationHandler : BaseJsonHandler<UserConfiguration>
{
protected override object GetObjectToSerialize()
protected override UserConfiguration GetObjectToSerialize()
{
Guid userId = Guid.Parse(QueryString["userid"]);