aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Entities')
-rw-r--r--MediaBrowser.Model/Entities/ItemSpecialCounts.cs11
-rw-r--r--MediaBrowser.Model/Entities/UserItemData.cs5
-rw-r--r--MediaBrowser.Model/Entities/Video.cs19
3 files changed, 34 insertions, 1 deletions
diff --git a/MediaBrowser.Model/Entities/ItemSpecialCounts.cs b/MediaBrowser.Model/Entities/ItemSpecialCounts.cs
index d5989ef1d..b57be6ca8 100644
--- a/MediaBrowser.Model/Entities/ItemSpecialCounts.cs
+++ b/MediaBrowser.Model/Entities/ItemSpecialCounts.cs
@@ -1,14 +1,23 @@
-
+using ProtoBuf;
+
namespace MediaBrowser.Model.Entities
{
/// <summary>
/// Since it can be slow to collect this data, this class helps provide a way to calculate them all at once.
/// </summary>
+ [ProtoContract]
public class ItemSpecialCounts
{
+ [ProtoMember(1)]
public int RecentlyAddedItemCount { get; set; }
+
+ [ProtoMember(2)]
public int RecentlyAddedUnPlayedItemCount { get; set; }
+
+ [ProtoMember(3)]
public int InProgressItemCount { get; set; }
+
+ [ProtoMember(4)]
public decimal PlayedPercentage { get; set; }
}
}
diff --git a/MediaBrowser.Model/Entities/UserItemData.cs b/MediaBrowser.Model/Entities/UserItemData.cs
index 817cf640e..d7b692014 100644
--- a/MediaBrowser.Model/Entities/UserItemData.cs
+++ b/MediaBrowser.Model/Entities/UserItemData.cs
@@ -1,13 +1,18 @@
using System;
+using ProtoBuf;
namespace MediaBrowser.Model.Entities
{
+ [ProtoContract]
public class UserItemData
{
+ [ProtoMember(1)]
public UserItemRating Rating { get; set; }
+ [ProtoMember(2)]
public long PlaybackPositionTicks { get; set; }
+ [ProtoMember(3)]
public int PlayCount { get; set; }
}
diff --git a/MediaBrowser.Model/Entities/Video.cs b/MediaBrowser.Model/Entities/Video.cs
index 874b033ac..5d0e06202 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; }
}