From cb7f04e4d3ff0a14dabb89ff828dde5a4703dc6b Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Wed, 29 Aug 2012 08:21:56 -0400 Subject: Upgraded Protobuf, and added api support for it --- MediaBrowser.Model/Entities/Video.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'MediaBrowser.Model/Entities/Video.cs') diff --git a/MediaBrowser.Model/Entities/Video.cs b/MediaBrowser.Model/Entities/Video.cs index 874b033ac8..5d0e062022 100644 --- a/MediaBrowser.Model/Entities/Video.cs +++ b/MediaBrowser.Model/Entities/Video.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using ProtoBuf; namespace MediaBrowser.Model.Entities { @@ -17,20 +18,38 @@ namespace MediaBrowser.Model.Entities public string Codec { 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(2)] public bool IsForced { get; set; } } -- cgit v1.2.3