diff options
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/ApiClient/IApiClient.cs | 8 | ||||
| -rw-r--r-- | MediaBrowser.Model/Session/GenericCommand.cs | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index 8de54f34a9..28c5822e9a 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -590,6 +590,14 @@ namespace MediaBrowser.Model.ApiClient Task SendPlayCommandAsync(string sessionId, PlayRequest request); /// <summary> + /// Sends the command asynchronous. + /// </summary> + /// <param name="sessionId">The session identifier.</param> + /// <param name="request">The request.</param> + /// <returns>Task.</returns> + Task SendCommandAsync(string sessionId, GenericCommand request); + + /// <summary> /// Sends a system command to the client /// </summary> /// <param name="sessionId">The session id.</param> diff --git a/MediaBrowser.Model/Session/GenericCommand.cs b/MediaBrowser.Model/Session/GenericCommand.cs index 3d5e503eff..f7ea0a84a5 100644 --- a/MediaBrowser.Model/Session/GenericCommand.cs +++ b/MediaBrowser.Model/Session/GenericCommand.cs @@ -7,6 +7,8 @@ namespace MediaBrowser.Model.Session { public string Name { get; set; } + public string ControllingUserId { get; set; } + public Dictionary<string, string> Arguments { get; set; } public GenericCommand() @@ -15,6 +17,9 @@ namespace MediaBrowser.Model.Session } } + /// <summary> + /// This exists simply to identify a set of known commands. + /// </summary> public enum CoreGenericCommand { MoveUp = 0, |
