Moved a few classes into their own files
This commit is contained in:
parent
2467ca9668
commit
6c9ecb6d2e
26
MediaBrowser.Model/Entities/AudioStream.cs
Normal file
26
MediaBrowser.Model/Entities/AudioStream.cs
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
using ProtoBuf;
|
||||||
|
|
||||||
|
namespace MediaBrowser.Model.Entities
|
||||||
|
{
|
||||||
|
[ProtoContract]
|
||||||
|
public class AudioStream
|
||||||
|
{
|
||||||
|
[ProtoMember(1)]
|
||||||
|
public string Codec { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(2)]
|
||||||
|
public string Language { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(3)]
|
||||||
|
public int BitRate { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(4)]
|
||||||
|
public int Channels { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(5)]
|
||||||
|
public int SampleRate { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(6)]
|
||||||
|
public bool IsDefault { get; set; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -20,47 +20,4 @@ namespace MediaBrowser.Model.Entities
|
||||||
[ProtoMember(4)]
|
[ProtoMember(4)]
|
||||||
public decimal PlayedPercentage { get; set; }
|
public decimal PlayedPercentage { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[ProtoContract]
|
|
||||||
public class AudioStream
|
|
||||||
{
|
|
||||||
[ProtoMember(1)]
|
|
||||||
public string Codec { get; set; }
|
|
||||||
|
|
||||||
[ProtoMember(2)]
|
|
||||||
public string Language { get; set; }
|
|
||||||
|
|
||||||
[ProtoMember(3)]
|
|
||||||
public int BitRate { get; set; }
|
|
||||||
|
|
||||||
[ProtoMember(4)]
|
|
||||||
public int Channels { get; set; }
|
|
||||||
|
|
||||||
[ProtoMember(5)]
|
|
||||||
public int SampleRate { get; set; }
|
|
||||||
|
|
||||||
[ProtoMember(6)]
|
|
||||||
public bool IsDefault { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
[ProtoContract]
|
|
||||||
public class SubtitleStream
|
|
||||||
{
|
|
||||||
[ProtoMember(1)]
|
|
||||||
public string Language { get; set; }
|
|
||||||
|
|
||||||
[ProtoMember(2)]
|
|
||||||
public bool IsDefault { get; set; }
|
|
||||||
|
|
||||||
[ProtoMember(3)]
|
|
||||||
public bool IsForced { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum VideoType
|
|
||||||
{
|
|
||||||
VideoFile,
|
|
||||||
Iso,
|
|
||||||
DVD,
|
|
||||||
BluRay
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
17
MediaBrowser.Model/Entities/SubtitleStream.cs
Normal file
17
MediaBrowser.Model/Entities/SubtitleStream.cs
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
using ProtoBuf;
|
||||||
|
|
||||||
|
namespace MediaBrowser.Model.Entities
|
||||||
|
{
|
||||||
|
[ProtoContract]
|
||||||
|
public class SubtitleStream
|
||||||
|
{
|
||||||
|
[ProtoMember(1)]
|
||||||
|
public string Language { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(2)]
|
||||||
|
public bool IsDefault { get; set; }
|
||||||
|
|
||||||
|
[ProtoMember(3)]
|
||||||
|
public bool IsForced { get; set; }
|
||||||
|
}
|
||||||
|
}
|
11
MediaBrowser.Model/Entities/VideoType.cs
Normal file
11
MediaBrowser.Model/Entities/VideoType.cs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
namespace MediaBrowser.Model.Entities
|
||||||
|
{
|
||||||
|
public enum VideoType
|
||||||
|
{
|
||||||
|
VideoFile,
|
||||||
|
Iso,
|
||||||
|
DVD,
|
||||||
|
BluRay
|
||||||
|
}
|
||||||
|
}
|
|
@ -45,10 +45,13 @@
|
||||||
<Compile Include="DTO\VideoInfo.cs" />
|
<Compile Include="DTO\VideoInfo.cs" />
|
||||||
<Compile Include="DTO\VideoOutputFormats.cs" />
|
<Compile Include="DTO\VideoOutputFormats.cs" />
|
||||||
<Compile Include="DTO\IBNItem.cs" />
|
<Compile Include="DTO\IBNItem.cs" />
|
||||||
|
<Compile Include="Entities\AudioStream.cs" />
|
||||||
<Compile Include="Entities\ImageType.cs" />
|
<Compile Include="Entities\ImageType.cs" />
|
||||||
<Compile Include="Entities\IHasProviderIds.cs" />
|
<Compile Include="Entities\IHasProviderIds.cs" />
|
||||||
<Compile Include="Entities\ItemSpecialCounts.cs" />
|
<Compile Include="Entities\ItemSpecialCounts.cs" />
|
||||||
<Compile Include="Entities\MetadataProviders.cs" />
|
<Compile Include="Entities\MetadataProviders.cs" />
|
||||||
|
<Compile Include="Entities\SubtitleStream.cs" />
|
||||||
|
<Compile Include="Entities\VideoType.cs" />
|
||||||
<Compile Include="Plugins\BasePluginConfiguration.cs" />
|
<Compile Include="Plugins\BasePluginConfiguration.cs" />
|
||||||
<Compile Include="DTO\PluginInfo.cs" />
|
<Compile Include="DTO\PluginInfo.cs" />
|
||||||
<Compile Include="Progress\TaskProgress.cs" />
|
<Compile Include="Progress\TaskProgress.cs" />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user