diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-15 22:17:48 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-15 22:17:48 -0400 |
| commit | 2ce9e05d2fc818b031f2ab12bc50ffae035033ed (patch) | |
| tree | 8c7b67c7090f5e9966c11f9b7d9411dac78533f2 /MediaBrowser.Controller/Session/SessionInfo.cs | |
| parent | ab5f8ed13679dbe1763cafc599a8f566a36a4a14 (diff) | |
add new playback checkin endpoints
Diffstat (limited to 'MediaBrowser.Controller/Session/SessionInfo.cs')
| -rw-r--r-- | MediaBrowser.Controller/Session/SessionInfo.cs | 69 |
1 files changed, 7 insertions, 62 deletions
diff --git a/MediaBrowser.Controller/Session/SessionInfo.cs b/MediaBrowser.Controller/Session/SessionInfo.cs index 9fcb024e8..80a6b75a2 100644 --- a/MediaBrowser.Controller/Session/SessionInfo.cs +++ b/MediaBrowser.Controller/Session/SessionInfo.cs @@ -1,5 +1,4 @@ -using MediaBrowser.Controller.Entities; -using MediaBrowser.Model.Entities; +using MediaBrowser.Model.Entities; using MediaBrowser.Model.Session; using System; using System.Collections.Generic; @@ -26,8 +25,11 @@ namespace MediaBrowser.Controller.Session AdditionalUsers = new List<SessionUserInfo>(); SupportedCommands = new List<string>(); + PlayState = new PlayerStateInfo(); } + public PlayerStateInfo PlayState { get; set; } + public List<SessionUserInfo> AdditionalUsers { get; set; } /// <summary> @@ -37,12 +39,6 @@ namespace MediaBrowser.Controller.Session public string RemoteEndPoint { get; set; } /// <summary> - /// Gets or sets a value indicating whether this instance can seek. - /// </summary> - /// <value><c>true</c> if this instance can seek; otherwise, <c>false</c>.</value> - public bool CanSeek { get; set; } - - /// <summary> /// Gets or sets the queueable media types. /// </summary> /// <value>The queueable media types.</value> @@ -58,7 +54,7 @@ namespace MediaBrowser.Controller.Session /// Gets or sets the id. /// </summary> /// <value>The id.</value> - public Guid Id { get; set; } + public string Id { get; set; } /// <summary> /// Gets or sets the user id. @@ -97,67 +93,16 @@ namespace MediaBrowser.Controller.Session public string NowViewingContext { get; set; } /// <summary> - /// Gets or sets the type of the now viewing item. - /// </summary> - /// <value>The type of the now viewing item.</value> - public string NowViewingItemType { get; set; } - - /// <summary> - /// Gets or sets the now viewing item identifier. - /// </summary> - /// <value>The now viewing item identifier.</value> - public string NowViewingItemId { get; set; } - - /// <summary> /// Gets or sets the name of the now viewing item. /// </summary> /// <value>The name of the now viewing item.</value> - public string NowViewingItemName { get; set; } + public BaseItemInfo NowViewingItem { get; set; } /// <summary> /// Gets or sets the now playing item. /// </summary> /// <value>The now playing item.</value> - public BaseItem NowPlayingItem { get; set; } - - /// <summary> - /// Gets or sets the now playing media version identifier. - /// </summary> - /// <value>The now playing media version identifier.</value> - public string NowPlayingMediaSourceId { get; set; } - - /// <summary> - /// Gets or sets the now playing run time ticks. - /// </summary> - /// <value>The now playing run time ticks.</value> - public long? NowPlayingRunTimeTicks { get; set; } - - /// <summary> - /// Gets or sets the now playing position ticks. - /// </summary> - /// <value>The now playing position ticks.</value> - public long? NowPlayingPositionTicks { get; set; } - /// <summary> - /// Gets or sets a value indicating whether this instance is paused. - /// </summary> - /// <value><c>true</c> if this instance is paused; otherwise, <c>false</c>.</value> - public bool IsPaused { get; set; } - - /// <summary> - /// Gets or sets a value indicating whether this instance is muted. - /// </summary> - /// <value><c>true</c> if this instance is muted; otherwise, <c>false</c>.</value> - public bool IsMuted { get; set; } - - /// <summary> - /// Gets or sets the volume level, on a scale of 0-100 - /// </summary> - /// <value>The volume level.</value> - public int? VolumeLevel { get; set; } - - public int? NowPlayingAudioStreamIndex { get; set; } - - public int? NowPlayingSubtitleStreamIndex { get; set; } + public BaseItemInfo NowPlayingItem { get; set; } /// <summary> /// Gets or sets the device id. |
