diff options
Diffstat (limited to 'MediaBrowser.Model/DTO')
| -rw-r--r-- | MediaBrowser.Model/DTO/DTOBaseItem.cs | 2 | ||||
| -rw-r--r-- | MediaBrowser.Model/DTO/DTOUserItemData.cs | 23 | ||||
| -rw-r--r-- | MediaBrowser.Model/DTO/VideoOutputFormats.cs | 2 |
3 files changed, 25 insertions, 2 deletions
diff --git a/MediaBrowser.Model/DTO/DTOBaseItem.cs b/MediaBrowser.Model/DTO/DTOBaseItem.cs index e1bc9c65b2..c841335242 100644 --- a/MediaBrowser.Model/DTO/DTOBaseItem.cs +++ b/MediaBrowser.Model/DTO/DTOBaseItem.cs @@ -145,7 +145,7 @@ namespace MediaBrowser.Model.DTO /// User data for this item based on the user it's being requested for
/// </summary>
[ProtoMember(40)]
- public UserItemData UserData { get; set; }
+ public DTOUserItemData UserData { get; set; }
[ProtoMember(41)]
public ItemSpecialCounts SpecialCounts { get; set; }
diff --git a/MediaBrowser.Model/DTO/DTOUserItemData.cs b/MediaBrowser.Model/DTO/DTOUserItemData.cs new file mode 100644 index 0000000000..33ff797afd --- /dev/null +++ b/MediaBrowser.Model/DTO/DTOUserItemData.cs @@ -0,0 +1,23 @@ +using ProtoBuf;
+
+namespace MediaBrowser.Model.DTO
+{
+ [ProtoContract]
+ public class DTOUserItemData
+ {
+ [ProtoMember(1)]
+ public float? Rating { get; set; }
+
+ [ProtoMember(2)]
+ public long PlaybackPositionTicks { get; set; }
+
+ [ProtoMember(3)]
+ public int PlayCount { get; set; }
+
+ [ProtoMember(4)]
+ public bool IsFavorite { get; set; }
+
+ [ProtoMember(5)]
+ public bool? Likes { get; set; }
+ }
+}
diff --git a/MediaBrowser.Model/DTO/VideoOutputFormats.cs b/MediaBrowser.Model/DTO/VideoOutputFormats.cs index d69797acc3..3059f6acaf 100644 --- a/MediaBrowser.Model/DTO/VideoOutputFormats.cs +++ b/MediaBrowser.Model/DTO/VideoOutputFormats.cs @@ -2,7 +2,7 @@ namespace MediaBrowser.Model.DTO
{
/// <summary>
- /// These are the audio output formats that the api is cabaple of streaming
+ /// These are the video output formats that the api is cabaple of streaming
/// This does not limit the inputs, only the outputs.
/// </summary>
public enum VideoOutputFormats
|
