jellyfin-server/MediaBrowser.Api/HttpHandlers/DefaultUserHandler.cs

20 lines
528 B
C#
Raw Normal View History

2012-09-07 16:17:39 +00:00
using MediaBrowser.Common.Net.Handlers;
2012-09-02 14:56:36 +00:00
using MediaBrowser.Model.DTO;
using MediaBrowser.Model.Entities;
2012-09-07 16:17:39 +00:00
using System.Threading.Tasks;
2012-09-02 14:56:36 +00:00
namespace MediaBrowser.Api.HttpHandlers
{
class DefaultUserHandler : BaseSerializationHandler<DTOUser>
{
protected override Task<DTOUser> GetObjectToSerialize()
{
2012-09-07 16:17:39 +00:00
User user = ApiService.GetDefaultUser(false);
2012-09-02 14:56:36 +00:00
DTOUser dto = ApiService.GetDTOUser(user);
return Task.FromResult<DTOUser>(dto);
}
}
}