|
|
|
@ -3,22 +3,14 @@ using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Notifications.Plex.Server
|
|
|
|
|
{
|
|
|
|
|
public class PlexSectionItemGuid
|
|
|
|
|
{
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PlexSectionItem
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("ratingKey")]
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Year { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonProperty("Guid")]
|
|
|
|
|
public List<PlexSectionItemGuid> Guids { get; set; }
|
|
|
|
|
public string Guid { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PlexSectionResponse
|
|
|
|
@ -36,5 +28,10 @@ namespace NzbDrone.Core.Notifications.Plex.Server
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("_children")]
|
|
|
|
|
public List<PlexSectionItem> Items { get; set; }
|
|
|
|
|
|
|
|
|
|
public PlexSectionResponseLegacy()
|
|
|
|
|
{
|
|
|
|
|
Items = new List<PlexSectionItem>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|