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