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.
jellyfin/MediaBrowser.Api/HttpHandlers/ItemHandler.cs

27 lines
638 B

using System;
13 years ago
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Api.HttpHandlers
{
public class ItemHandler : JsonHandler
13 years ago
{
protected sealed override object ObjectToSerialize
13 years ago
{
get
{
Guid userId = Guid.Parse(QueryString["userid"]);
return ApiService.GetSerializationObject(ItemToSerialize, true, userId);
13 years ago
}
}
protected virtual BaseItem ItemToSerialize
13 years ago
{
get
13 years ago
{
return ApiService.GetItemById(QueryString["id"]);
13 years ago
}
}
}
}