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.
17 lines
444 B
17 lines
444 B
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);
|
|
}
|
|
}
|
|
}
|