mirror of https://github.com/ErsatzTV/ErsatzTV.git
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.
60 lines
1.5 KiB
60 lines
1.5 KiB
using System.Xml.Serialization; |
|
|
|
namespace ErsatzTV.Infrastructure.Plex.Models; |
|
|
|
public class PlexMediaContainerResponse<T> |
|
{ |
|
public T MediaContainer { get; set; } |
|
} |
|
|
|
public class PlexMediaContainerDirectoryContent<T> |
|
{ |
|
public List<T> Directory { get; set; } = []; |
|
} |
|
|
|
public class PlexMediaContainerMetadataContent<T> |
|
{ |
|
public List<T> Metadata { get; set; } |
|
} |
|
|
|
[XmlRoot("MediaContainer", Namespace = null)] |
|
public class PlexXmlMediaContainerStatsResponse |
|
{ |
|
[XmlAttribute("totalSize")] |
|
public int TotalSize { get; set; } |
|
} |
|
|
|
[XmlRoot("MediaContainer", Namespace = null)] |
|
public class PlexXmlMediaContainerPingResponse |
|
{ |
|
[XmlAttribute("machineIdentifier")] |
|
public string MachineIdentifier { get; set; } |
|
} |
|
|
|
[XmlRoot("MediaContainer", Namespace = null)] |
|
public class PlexXmlVideoMetadataResponseContainer |
|
{ |
|
[XmlElement("Video")] |
|
public PlexXmlMetadataResponse Metadata { get; set; } |
|
} |
|
|
|
[XmlRoot("MediaContainer", Namespace = null)] |
|
public class PlexXmlDirectoryMetadataResponseContainer |
|
{ |
|
[XmlElement("Directory")] |
|
public PlexXmlMetadataResponse Metadata { get; set; } |
|
} |
|
|
|
[XmlRoot("MediaContainer", Namespace = null)] |
|
public class PlexXmlSeasonsMetadataResponseContainer |
|
{ |
|
[XmlElement("Directory")] |
|
public List<PlexXmlMetadataResponse> Metadata { get; set; } |
|
} |
|
|
|
[XmlRoot("MediaContainer", Namespace = null)] |
|
public class PlexXmlEpisodesMetadataResponseContainer |
|
{ |
|
[XmlElement("Video")] |
|
public List<PlexXmlMetadataResponse> Metadata { get; set; } |
|
}
|
|
|