aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Session
diff options
context:
space:
mode:
authorTim Hobbs <jesus.tesh@gmail.com>2014-03-24 05:22:11 -0700
committerTim Hobbs <jesus.tesh@gmail.com>2014-03-24 05:22:11 -0700
commit543ce24c1051d10b32c0dae5277ee37c27daceae (patch)
treea45f20a51af3842097e1ca98ff7653a6a8523675 /MediaBrowser.Model/Session
parentcf5e89d045c616db8a4e83beae0a38c94fcb3e42 (diff)
parent9b294c8bc96b31f6c458cc47fa8d330be2df086a (diff)
Merge remote-tracking branch 'upstream/master'
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 0000000000..75dd3346ce
--- /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 MediaSourceId { 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 MediaSourceId { 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 MediaSourceId { get; set; }
+
+ public long? PositionTicks { get; set; }
+ }
+}
diff --git a/MediaBrowser.Model/Session/SessionCapabilities.cs b/MediaBrowser.Model/Session/SessionCapabilities.cs
index 731ebacccf..7b3b04ce92 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 d44bbeaeb5..09a8375d81 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()