//------------------------------------------------------------------------------ // // This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. // //------------------------------------------------------------------------------ #nullable enable namespace LukeHagar.PlexAPI.SDK.Models.Components { using LukeHagar.PlexAPI.SDK.Models.Components; using LukeHagar.PlexAPI.SDK.Utils; using Newtonsoft.Json; using System.Collections.Generic; /// /// `Media` represents an one or more media files (parts) and is a child of a metadata item. There aren't necessarily any guaranteed attributes on media elements since the attributes will vary based on the type. The possible attributes are not documented here, but they typically have self-evident names. High-level media information that can be used for badging and flagging, such as `videoResolution` and codecs, is included on the media element.
/// /// /// /// ///
public class Media { [JsonProperty("aspectRatio")] public double? AspectRatio { get; set; } [JsonProperty("audioChannels")] public long? AudioChannels { get; set; } [JsonProperty("audioCodec")] public object? AudioCodec { get; set; } [JsonProperty("audioProfile")] public object? AudioProfile { get; set; } [JsonProperty("bitrate")] public long? Bitrate { get; set; } [JsonProperty("container")] public object? Container { get; set; } [JsonProperty("duration")] public long? Duration { get; set; } [JsonProperty("has64bitOffsets")] public bool? Has64bitOffsets { get; set; } [JsonProperty("hasVoiceActivity")] public bool? HasVoiceActivity { get; set; } [JsonProperty("height")] public long? Height { get; set; } [JsonProperty("id")] public long? Id { get; set; } [JsonProperty("optimizedForStreaming")] public bool? OptimizedForStreaming { get; set; } [JsonProperty("Part")] public List? Part { get; set; } [JsonProperty("videoCodec")] public object? VideoCodec { get; set; } [JsonProperty("videoFrameRate")] public object? VideoFrameRate { get; set; } [JsonProperty("videoProfile")] public object? VideoProfile { get; set; } [JsonProperty("videoResolution")] public object? VideoResolution { get; set; } [JsonProperty("width")] public long? Width { get; set; } [JsonProperty("additionalProperties")] public Dictionary? AdditionalProperties { get; set; } } }