using MediaBrowser.Common.Net.Handlers; using MediaBrowser.Controller; using MediaBrowser.Model.DTO; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MediaBrowser.Api.HttpHandlers { class UsersHandler : BaseSerializationHandler> { protected override Task> GetObjectToSerialize() { return Task.FromResult>(Kernel.Instance.Users.Select(u => ApiService.GetDTOUser(u))); } } }