fixed add new series

This commit is contained in:
kay.one 2013-05-12 08:18:17 -07:00
parent a77a529969
commit 29ca16ce77
16 changed files with 18 additions and 6 deletions

View File

@ -2,6 +2,7 @@
using System.IO;
using Nancy;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
namespace NzbDrone.Api.Extensions
{

View File

@ -3,6 +3,7 @@ using System.IO;
using Nancy;
using Nancy.Responses;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
namespace NzbDrone.Api.Extensions
{

View File

@ -8,10 +8,10 @@ namespace NzbDrone.Api.SignalR
[Singleton]
public class Serializer : IJsonSerializer
{
private readonly Common.IJsonSerializer _nzbDroneSerializer;
private readonly Common.Serializer.IJsonSerializer _nzbDroneSerializer;
private readonly JsonNetSerializer _signalRSerializer;
public Serializer(Common.IJsonSerializer nzbDroneSerializer)
public Serializer(Common.Serializer.IJsonSerializer nzbDroneSerializer)
{
_signalRSerializer = new JsonNetSerializer();
_nzbDroneSerializer = nzbDroneSerializer;

View File

@ -4,7 +4,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
namespace NzbDrone.Common
namespace NzbDrone.Common.Serializer
{
public interface IJsonSerializer
{
@ -24,7 +24,7 @@ namespace NzbDrone.Common
_jsonNetSerializer = new Newtonsoft.Json.JsonSerializer()
{
DateTimeZoneHandling = DateTimeZoneHandling.Utc,
NullValueHandling = NullValueHandling.Include,
NullValueHandling = NullValueHandling.Ignore,
Formatting = Formatting.Indented,
DefaultValueHandling = DefaultValueHandling.Include,
ContractResolver = new CamelCasePropertyNamesContractResolver()

View File

@ -120,7 +120,7 @@
<Compile Include="Expansive\Tree.cs" />
<Compile Include="Expansive\TreeNode.cs" />
<Compile Include="Expansive\TreeNodeList.cs" />
<Compile Include="IJsonSerializer.cs" />
<Compile Include="Serializer\JsonSerializer.cs" />
<Compile Include="Instrumentation\VersionLayoutRenderer.cs" />
<Compile Include="Messaging\MessageExtensions.cs" />
<Compile Include="Messaging\TestCommand.cs" />

View File

@ -4,6 +4,7 @@ using FluentAssertions;
using Marr.Data;
using NUnit.Framework;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Datastore.Converters;
using NzbDrone.Core.Tv;

View File

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using NLog;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Configuration;
namespace NzbDrone.Core.DataAugmentation.DailySeries

View File

@ -1,5 +1,6 @@
using System.Collections.Generic;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Configuration;
namespace NzbDrone.Core.DataAugmentation.Scene

View File

@ -2,6 +2,7 @@
using Marr.Data.Converters;
using Marr.Data.Mapping;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
namespace NzbDrone.Core.Datastore.Converters
{

View File

@ -4,6 +4,7 @@ using System.Linq;
using Marr.Data;
using Marr.Data.Mapping;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.DataAugmentation.Scene;
using NzbDrone.Core.Datastore.Converters;

View File

@ -1,4 +1,5 @@
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
namespace NzbDrone.Core.Indexers
{

View File

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
namespace NzbDrone.Core.Indexers.Newznab
{

View File

@ -4,6 +4,7 @@ using FluentAssertions;
using NLog;
using NzbDrone.Api.REST;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using RestSharp;
namespace NzbDrone.Integration.Test.Client

View File

@ -1,5 +1,6 @@
using NUnit.Framework;
using NzbDrone.Common;
using NzbDrone.Common.Serializer;
using NzbDrone.Test.Common;
namespace NzbDrone.Libraries.Test.Json

View File

@ -6,6 +6,7 @@ using NLog;
using NUnit.Framework;
using NzbDrone.Common;
using NzbDrone.Common.Messaging;
using NzbDrone.Common.Serializer;
using NzbDrone.Test.Common.AutoMoq;
namespace NzbDrone.Test.Common

View File

@ -18,7 +18,7 @@ define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'AddSeries/New/Sear
this.collection.parse = function (response) {
_.each(response, function (model) {
model.id = null;
model.id = undefined;
});
return response;