added ControllableByUserId to sessions url

This commit is contained in:
Luke Pulverenti
2013-09-19 16:03:14 -04:00
parent 088df67fca
commit 631b7b62c1
9 changed files with 54 additions and 4 deletions

View File

@@ -187,7 +187,7 @@ namespace MediaBrowser.Model.ApiClient
/// Gets active client sessions.
/// </summary>
/// <returns>Task{SessionInfoDto[]}.</returns>
Task<SessionInfoDto[]> GetClientSessionsAsync();
Task<SessionInfoDto[]> GetClientSessionsAsync(SessionQuery query);
/// <summary>
/// Gets the item counts async.

View File

@@ -89,6 +89,12 @@
/// </summary>
/// <value><c>true</c> if [append baseline stream]; otherwise, <c>false</c>.</value>
public bool AppendBaselineStream { get; set; }
/// <summary>
/// Gets or sets the time stamp offset ms. Only used with HLS.
/// </summary>
/// <value>The time stamp offset ms.</value>
public int? TimeStampOffsetMs { get; set; }
}
/// <summary>

View File

@@ -76,6 +76,7 @@
<Compile Include="Querying\ItemsByNameQuery.cs" />
<Compile Include="Entities\BaseItemInfo.cs" />
<Compile Include="Querying\NextUpQuery.cs" />
<Compile Include="Querying\SessionQuery.cs" />
<Compile Include="Querying\SimilarItemsQuery.cs" />
<Compile Include="Querying\UserQuery.cs" />
<Compile Include="Session\BrowseRequest.cs" />

View File

@@ -0,0 +1,19 @@

namespace MediaBrowser.Model.Querying
{
/// <summary>
/// Class SessionQuery
/// </summary>
public class SessionQuery
{
/// <summary>
/// Filter by sessions that are allowed to be controlled by a given user
/// </summary>
public string ControllableByUserId { get; set; }
/// <summary>
/// Filter by sessions that either do or do not support remote control. Default returns all sessions.
/// </summary>
public bool? SupportsRemoteControl { get; set; }
}
}