aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-31 17:04:22 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-03-31 17:04:22 -0400
commitbb5386bb3a8b71406728f8bd2249cf6e02a34ed2 (patch)
tree7fddf86baf42e93c7544053b30e215aaec8ac1c2 /MediaBrowser.Server.Implementations/Session/WebSocketController.cs
parentc0801e4f6de87f6a14409b7f399cfd52b3ce88e8 (diff)
added more remote control commands
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/WebSocketController.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Session/WebSocketController.cs18
1 files changed, 3 insertions, 15 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/WebSocketController.cs b/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
index ddf4ec2ca..3bb84fa0e 100644
--- a/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
+++ b/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
@@ -57,18 +57,6 @@ namespace MediaBrowser.Server.Implementations.Session
return socket;
}
- public Task SendSystemCommand(SystemCommand command, CancellationToken cancellationToken)
- {
- var socket = GetActiveSocket();
-
- return socket.SendAsync(new WebSocketMessage<string>
- {
- MessageType = "SystemCommand",
- Data = command.ToString()
-
- }, cancellationToken);
- }
-
public Task SendMessageCommand(MessageCommand command, CancellationToken cancellationToken)
{
var socket = GetActiveSocket();
@@ -199,13 +187,13 @@ namespace MediaBrowser.Server.Implementations.Session
}, cancellationToken);
}
- public Task SendGenericCommand(GenericCommand command, CancellationToken cancellationToken)
+ public Task SendGeneralCommand(GeneralCommand command, CancellationToken cancellationToken)
{
var socket = GetActiveSocket();
- return socket.SendAsync(new WebSocketMessage<GenericCommand>
+ return socket.SendAsync(new WebSocketMessage<GeneralCommand>
{
- MessageType = "Command",
+ MessageType = "GeneralCommand",
Data = command
}, cancellationToken);