17 lines
444 B
C#
17 lines
444 B
C#
using System.IO;
|
|
using MediaBrowser.Common.Json;
|
|
using MediaBrowser.Net.Handlers;
|
|
|
|
namespace MediaBrowser.Api.HttpHandlers
|
|
{
|
|
public abstract class JsonHandler : BaseJsonHandler
|
|
{
|
|
protected abstract object ObjectToSerialize { get; }
|
|
|
|
protected override void WriteResponseToOutputStream(Stream stream)
|
|
{
|
|
JsonSerializer.SerializeToStream(ObjectToSerialize, stream);
|
|
}
|
|
}
|
|
}
|