You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
586 B
22 lines
586 B
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using MediaBrowser.Common.Net.Handlers;
|
|
using MediaBrowser.Controller;
|
|
using MediaBrowser.Model.DTO;
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
namespace MediaBrowser.Api.HttpHandlers
|
|
{
|
|
class DefaultUserHandler : BaseSerializationHandler<DTOUser>
|
|
{
|
|
protected override Task<DTOUser> GetObjectToSerialize()
|
|
{
|
|
User user = Kernel.Instance.Users.FirstOrDefault();
|
|
|
|
DTOUser dto = ApiService.GetDTOUser(user);
|
|
|
|
return Task.FromResult<DTOUser>(dto);
|
|
}
|
|
}
|
|
}
|