mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 01:57:21 +00:00
22 lines
No EOL
532 B
C#
22 lines
No EOL
532 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using Nancy;
|
|
using NzbDrone.Common.Serializer;
|
|
|
|
namespace NzbDrone.Api.Extensions
|
|
{
|
|
public class NancyJsonSerializer : ISerializer
|
|
{
|
|
public bool CanSerialize(string contentType)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public void Serialize<TModel>(string contentType, TModel model, Stream outputStream)
|
|
{
|
|
Json.Serialize(model, outputStream);
|
|
}
|
|
|
|
public IEnumerable<string> Extensions { get; private set; }
|
|
}
|
|
} |