2012-08-17 15:16:50 +02:00
|
|
|
|
using System.Collections.Generic;
|
2012-08-19 22:38:31 +02:00
|
|
|
|
using System.Threading.Tasks;
|
2012-08-17 15:16:50 +02:00
|
|
|
|
using MediaBrowser.Common.Net.Handlers;
|
2012-08-15 15:20:29 +02:00
|
|
|
|
using MediaBrowser.Controller;
|
2012-08-18 10:22:54 +02:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2012-07-16 18:50:44 +02:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Api.HttpHandlers
|
|
|
|
|
{
|
2012-08-17 15:16:50 +02:00
|
|
|
|
class UsersHandler : BaseJsonHandler<IEnumerable<User>>
|
2012-07-16 18:50:44 +02:00
|
|
|
|
{
|
2012-08-19 22:38:31 +02:00
|
|
|
|
protected override Task<IEnumerable<User>> GetObjectToSerialize()
|
2012-07-16 18:50:44 +02:00
|
|
|
|
{
|
2012-08-22 04:50:59 +02:00
|
|
|
|
return Task.FromResult<IEnumerable<User>>(Kernel.Instance.Users);
|
2012-07-16 18:50:44 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|