diff options
| author | Cody Robibero <cody@robibe.ro> | 2023-06-29 05:44:36 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-29 05:44:36 -0600 |
| commit | b5bbb98175e0542d43c01f80c15e8dce04e58b53 (patch) | |
| tree | cd2af363318415710fa97fa5be42075046bcadbc /MediaBrowser.Controller/Net/WebSocketMessages/InboundWebSocketMessageOfT.cs | |
| parent | 76939bbd9bebb622759422f262c2490b56ab5a16 (diff) | |
Fix Websocket OpenApi (#9935)
* Further split inbound and outbound messages
* Fix datatype for inbound start messages
* fixes from review
Diffstat (limited to 'MediaBrowser.Controller/Net/WebSocketMessages/InboundWebSocketMessageOfT.cs')
| -rw-r--r-- | MediaBrowser.Controller/Net/WebSocketMessages/InboundWebSocketMessageOfT.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Net/WebSocketMessages/InboundWebSocketMessageOfT.cs b/MediaBrowser.Controller/Net/WebSocketMessages/InboundWebSocketMessageOfT.cs new file mode 100644 index 000000000..4da5e7d31 --- /dev/null +++ b/MediaBrowser.Controller/Net/WebSocketMessages/InboundWebSocketMessageOfT.cs @@ -0,0 +1,26 @@ +#pragma warning disable SA1649 // File name must equal class name. + +namespace MediaBrowser.Controller.Net.WebSocketMessages; + +/// <summary> +/// Inbound websocket message with data. +/// </summary> +/// <typeparam name="T">The data type.</typeparam> +public class InboundWebSocketMessage<T> : WebSocketMessage<T>, IInboundWebSocketMessage +{ + /// <summary> + /// Initializes a new instance of the <see cref="InboundWebSocketMessage{T}"/> class. + /// </summary> + public InboundWebSocketMessage() + { + } + + /// <summary> + /// Initializes a new instance of the <see cref="InboundWebSocketMessage{T}"/> class. + /// </summary> + /// <param name="data">The data to send.</param> + protected InboundWebSocketMessage(T data) + { + Data = data; + } +} |
