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