mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			638 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			638 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using MediaBrowser.Model.Entities;
 | 
						|
 | 
						|
namespace MediaBrowser.Api.HttpHandlers
 | 
						|
{
 | 
						|
    public class ItemHandler : JsonHandler
 | 
						|
    {
 | 
						|
        protected sealed override object ObjectToSerialize
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                Guid userId = Guid.Parse(QueryString["userid"]);
 | 
						|
 | 
						|
                return ApiService.GetSerializationObject(ItemToSerialize, true, userId);
 | 
						|
            }
 | 
						|
        }
 | 
						|
 | 
						|
        protected virtual BaseItem ItemToSerialize
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                return ApiService.GetItemById(QueryString["id"]);
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |