jellyfin/MediaBrowser.Api/HttpHandlers/UsersHandler.cs

18 lines
549 B
C#
Raw Normal View History

2012-09-07 16:17:39 +00:00
using MediaBrowser.Common.Net.Handlers;
using MediaBrowser.Controller;
using MediaBrowser.Model.DTO;
2012-09-07 16:17:39 +00:00
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MediaBrowser.Api.HttpHandlers
{
2012-09-02 05:30:25 +00:00
class UsersHandler : BaseSerializationHandler<IEnumerable<DTOUser>>
{
protected override Task<IEnumerable<DTOUser>> GetObjectToSerialize()
{
return Task.FromResult<IEnumerable<DTOUser>>(Kernel.Instance.Users.Select(u => ApiService.GetDTOUser(u)));
}
}
}