From 7835d690a1ade4739171036cff335c86b5232d0e Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sat, 18 Aug 2012 04:22:54 -0400 Subject: Added a completely separate DTOBaseItem to remove the ApiBaseItemWrapper mess and shrink json output size. --- MediaBrowser.Model/Entities/Video.cs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'MediaBrowser.Model/Entities/Video.cs') diff --git a/MediaBrowser.Model/Entities/Video.cs b/MediaBrowser.Model/Entities/Video.cs index b99cacd135..688226634c 100644 --- a/MediaBrowser.Model/Entities/Video.cs +++ b/MediaBrowser.Model/Entities/Video.cs @@ -6,28 +6,27 @@ namespace MediaBrowser.Model.Entities { public VideoType VideoType { get; set; } - private IEnumerable _Subtitles = new string[] { }; - public IEnumerable Subtitles { get { return _Subtitles; } set { _Subtitles = value; } } - - private IEnumerable _AudioStreams = new AudioStream[] { }; - public IEnumerable AudioStreams { get { return _AudioStreams; } set { _AudioStreams = value; } } + public IEnumerable Subtitles { get; set; } + public IEnumerable AudioStreams { get; set; } public int Height { get; set; } public int Width { get; set; } public string ScanType { get; set; } public string FrameRate { get; set; } - public int VideoBitRate { get; set; } - public string VideoCodec { get; set; } + public int BitRate { get; set; } + public string Codec { get; set; } } public class AudioStream { - public string AudioFormat { get; set; } - public string AudioProfile { get; set; } + public string Format { get; set; } + public string Profile { get; set; } public string Language { get; set; } public int BitRate { get; set; } public int Channels { get; set; } public int SampleRate { get; set; } + public bool IsDefault { get; set; } + public bool IsForced { get; set; } } public enum VideoType -- cgit v1.2.3