Fixed: do not send season images in json requests for series

This can save a significant amount of data on the wire, for something never used
This commit is contained in:
Mark McDowall 2014-07-21 11:14:32 -07:00
parent d64c4445b8
commit 9b17a3787d
3 changed files with 16 additions and 1 deletions

View File

@ -166,6 +166,7 @@
<Compile Include="Mapping\ResourceMappingException.cs" />
<Compile Include="Mapping\ValueInjectorExtensions.cs" />
<Compile Include="Series\AlternateTitleResource.cs" />
<Compile Include="Series\SeasonResource.cs" />
<Compile Include="System\Backup\BackupModule.cs" />
<Compile Include="System\Backup\BackupResource.cs" />
<Compile Include="Update\UpdateResource.cs" />

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NzbDrone.Api.Series
{
public class SeasonResource
{
public int SeasonNumber { get; set; }
public Boolean Monitored { get; set; }
}
}

View File

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using NzbDrone.Api.REST;
using NzbDrone.Core.MediaCover;
using NzbDrone.Core.Tv;
@ -40,7 +41,7 @@ namespace NzbDrone.Api.Series
public List<MediaCover> Images { get; set; }
public String RemotePoster { get; set; }
public List<Season> Seasons { get; set; }
public List<SeasonResource> Seasons { get; set; }
public Int32 Year { get; set; }
//View & Edit