NzbGet now uses RestSharp

This commit is contained in:
Mark McDowall
2013-12-01 01:44:33 -08:00
parent 39bb2ce80a
commit 53cebdee17
8 changed files with 174 additions and 104 deletions
@@ -0,0 +1,23 @@
using NzbDrone.Common.Serializer;
using RestSharp.Serializers;
namespace NzbDrone.Core.Rest
{
public class JsonNetSerializer : ISerializer
{
public JsonNetSerializer()
{
ContentType = "application/json";
}
public string Serialize(object obj)
{
return obj.ToJson();
}
public string RootElement { get; set; }
public string Namespace { get; set; }
public string DateFormat { get; set; }
public string ContentType { get; set; }
}
}