jellyfin/MediaBrowser.Api/HttpHandlers/DefaultUserHandler.cs
LukePulverenti Luke Pulverenti luke pulverenti 8fc828361e Updated authentication
2012-09-07 12:17:39 -04:00

20 lines
528 B
C#

using MediaBrowser.Common.Net.Handlers;
using MediaBrowser.Model.DTO;
using MediaBrowser.Model.Entities;
using System.Threading.Tasks;
namespace MediaBrowser.Api.HttpHandlers
{
class DefaultUserHandler : BaseSerializationHandler<DTOUser>
{
protected override Task<DTOUser> GetObjectToSerialize()
{
User user = ApiService.GetDefaultUser(false);
DTOUser dto = ApiService.GetDTOUser(user);
return Task.FromResult<DTOUser>(dto);
}
}
}