Added VideoInfo to DTOBaseItem

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-22 08:56:44 -04:00
parent fbf8cc833c
commit f2de85b5d9
10 changed files with 156 additions and 58 deletions

View File

@@ -91,7 +91,8 @@ namespace MediaBrowser.Model.DTO
public ItemSpecialCounts SpecialCounts { get; set; }
public AudioInfo AudioInfo { get; set; }
public VideoInfo VideoInfo { get; set; }
public bool IsType(Type type)
{
return IsType(type.Name);

View File

@@ -0,0 +1,18 @@
using System.Collections.Generic;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Model.DTO
{
public class VideoInfo
{
public string Codec { get; set; }
public int Height { get; set; }
public int Width { get; set; }
public string ScanType { get; set; }
public VideoType VideoType { get; set; }
public IEnumerable<SubtitleStream> Subtitles { get; set; }
public IEnumerable<AudioStream> AudioStreams { get; set; }
}
}

View File

@@ -6,7 +6,7 @@ namespace MediaBrowser.Model.Entities
{
public VideoType VideoType { get; set; }
public IEnumerable<string> Subtitles { get; set; }
public IEnumerable<SubtitleStream> Subtitles { get; set; }
public IEnumerable<AudioStream> AudioStreams { get; set; }
public int Height { get; set; }
@@ -25,6 +25,12 @@ namespace MediaBrowser.Model.Entities
public int Channels { get; set; }
public int SampleRate { get; set; }
public bool IsDefault { get; set; }
}
public class SubtitleStream
{
public string Language { get; set; }
public bool IsDefault { get; set; }
public bool IsForced { get; set; }
}

View File

@@ -34,6 +34,7 @@
<ItemGroup>
<Compile Include="DTO\AudioInfo.cs" />
<Compile Include="DTO\DTOBaseItem.cs" />
<Compile Include="DTO\VideoInfo.cs" />
<Compile Include="Entities\Audio.cs" />
<Compile Include="Entities\BaseEntity.cs" />
<Compile Include="Entities\BaseItem.cs" />