diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-08-28 00:31:34 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-08-28 00:31:34 -0400 |
| commit | 97a65ab8ad463f6f50b88623b1e5ce935c87a5f6 (patch) | |
| tree | 315ac4994db59cee0215eb3be316d2b646b53caa | |
| parent | dfab2be6f598487828eac7f0343bc2b0842a8941 (diff) | |
updated web client to respond to new remote control commands
| -rw-r--r-- | MediaBrowser.Api/SessionsService.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Api/SessionsService.cs b/MediaBrowser.Api/SessionsService.cs index 0307bc498..bd05c3250 100644 --- a/MediaBrowser.Api/SessionsService.cs +++ b/MediaBrowser.Api/SessionsService.cs @@ -166,7 +166,7 @@ namespace MediaBrowser.Api [ApiMember(Name = "Header", Description = "The message header.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")] public string Header { get; set; } - [ApiMember(Name = "TimeoutMs", Description = "The message timeout. If omitted the user will have to confirm viewing the message.", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")] + [ApiMember(Name = "TimeoutMs", Description = "The message timeout. If omitted the user will have to confirm viewing the message.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "POST")] public long? TimeoutMs { get; set; } } @@ -255,7 +255,7 @@ namespace MediaBrowser.Api throw new InvalidOperationException("The requested session does not have an open web socket."); } } - + /// <summary> /// Posts the specified request. /// </summary> @@ -399,7 +399,7 @@ namespace MediaBrowser.Api Data = new MessageCommand { - Header = request.Header, + Header = string.IsNullOrEmpty(request.Header) ? "Message from Server" : request.Header, TimeoutMs = request.TimeoutMs, Text = request.Text } |
