You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
827 B
37 lines
827 B
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace NzbDrone.Core.Notifications.Plex.Server
|
|
{
|
|
public class PlexSectionItem
|
|
{
|
|
[JsonProperty("ratingKey")]
|
|
public string Id { get; set; }
|
|
|
|
public string Title { get; set; }
|
|
public string Guid { get; set; }
|
|
}
|
|
|
|
public class PlexSectionResponse
|
|
{
|
|
[JsonProperty("Metadata")]
|
|
public List<PlexSectionItem> Items { get; set; }
|
|
|
|
public PlexSectionResponse()
|
|
{
|
|
Items = new List<PlexSectionItem>();
|
|
}
|
|
}
|
|
|
|
public class PlexSectionResponseLegacy
|
|
{
|
|
[JsonProperty("_children")]
|
|
public List<PlexSectionItem> Items { get; set; }
|
|
|
|
public PlexSectionResponseLegacy()
|
|
{
|
|
Items = new List<PlexSectionItem>();
|
|
}
|
|
}
|
|
}
|