aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Session
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-21 23:35:03 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-21 23:35:03 -0400
commit327af0fe62bb3a055e4286154e9ba6104969af24 (patch)
tree60ece20a2867291141d1a5918859f2d5e3cb582a /MediaBrowser.Model/Session
parent72917cc0b795c8f18a7b982ef8c70da5aa8c8fa8 (diff)
rework media versions to be based on original item id
Diffstat (limited to 'MediaBrowser.Model/Session')
-rw-r--r--MediaBrowser.Model/Session/PlaybackReports.cs56
-rw-r--r--MediaBrowser.Model/Session/SessionCapabilities.cs4
-rw-r--r--MediaBrowser.Model/Session/SessionInfoDto.cs16
3 files changed, 74 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Session/PlaybackReports.cs b/MediaBrowser.Model/Session/PlaybackReports.cs
new file mode 100644
index 000000000..662dc5780
--- /dev/null
+++ b/MediaBrowser.Model/Session/PlaybackReports.cs
@@ -0,0 +1,56 @@
+
+namespace MediaBrowser.Model.Session
+{
+ /// <summary>
+ /// Class PlaybackStartInfo.
+ /// </summary>
+ public class PlaybackStartInfo
+ {
+ public string UserId { get; set; }
+
+ public string ItemId { get; set; }
+
+ public string MediaVersionId { get; set; }
+
+ public bool IsSeekable { get; set; }
+
+ public string[] QueueableMediaTypes { get; set; }
+
+ public PlaybackStartInfo()
+ {
+ QueueableMediaTypes = new string[] { };
+ }
+ }
+
+ /// <summary>
+ /// Class PlaybackProgressInfo.
+ /// </summary>
+ public class PlaybackProgressInfo
+ {
+ public string UserId { get; set; }
+
+ public string ItemId { get; set; }
+
+ public string MediaVersionId { get; set; }
+
+ public long? PositionTicks { get; set; }
+
+ public bool IsPaused { get; set; }
+
+ public bool IsMuted { get; set; }
+ }
+
+ /// <summary>
+ /// Class PlaybackStopInfo.
+ /// </summary>
+ public class PlaybackStopInfo
+ {
+ public string UserId { get; set; }
+
+ public string ItemId { get; set; }
+
+ public string MediaVersionId { get; set; }
+
+ public long? PositionTicks { get; set; }
+ }
+}
diff --git a/MediaBrowser.Model/Session/SessionCapabilities.cs b/MediaBrowser.Model/Session/SessionCapabilities.cs
index 731ebaccc..7b3b04ce9 100644
--- a/MediaBrowser.Model/Session/SessionCapabilities.cs
+++ b/MediaBrowser.Model/Session/SessionCapabilities.cs
@@ -7,6 +7,10 @@ namespace MediaBrowser.Model.Session
public bool SupportsFullscreenToggle { get; set; }
+ public bool SupportsOsdToggle { get; set; }
+
+ public bool SupportsNavigationControl { get; set; }
+
public SessionCapabilities()
{
PlayableMediaTypes = new string[] {};
diff --git a/MediaBrowser.Model/Session/SessionInfoDto.cs b/MediaBrowser.Model/Session/SessionInfoDto.cs
index d44bbeaeb..09a8375d8 100644
--- a/MediaBrowser.Model/Session/SessionInfoDto.cs
+++ b/MediaBrowser.Model/Session/SessionInfoDto.cs
@@ -1,8 +1,8 @@
-using System.Diagnostics;
-using MediaBrowser.Model.Entities;
+using MediaBrowser.Model.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel;
+using System.Diagnostics;
namespace MediaBrowser.Model.Session
{
@@ -147,6 +147,18 @@ namespace MediaBrowser.Model.Session
/// <value><c>true</c> if [supports remote control]; otherwise, <c>false</c>.</value>
public bool SupportsRemoteControl { get; set; }
+ /// <summary>
+ /// Gets or sets a value indicating whether [supports osd toggle].
+ /// </summary>
+ /// <value><c>true</c> if [supports osd toggle]; otherwise, <c>false</c>.</value>
+ public bool SupportsOsdToggle { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether [supports navigation commands].
+ /// </summary>
+ /// <value><c>true</c> if [supports navigation commands]; otherwise, <c>false</c>.</value>
+ public bool SupportsNavigationControl { get; set; }
+
public event PropertyChangedEventHandler PropertyChanged;
public SessionInfoDto()