mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-05 09:52:10 +01:00
Upgraded Protobuf, and added api support for it
This commit is contained in:
parent
de74609784
commit
cb7f04e4d3
@@ -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; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user