diff options
| author | crobibero <cody@robibe.ro> | 2021-04-03 06:54:09 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2021-04-03 06:54:09 -0600 |
| commit | 31d1dbfda630e45a8884f1a10d172f8cc83df9b0 (patch) | |
| tree | f1b43caed42914e1028c962de72565834b65d395 /Jellyfin.Server/Filters/WebsocketModelFilter.cs | |
| parent | 959a09bdb08e2fadcbf0bb15225fca0b2c92e04f (diff) | |
Add SessionDiscoveryInfo to generated api-docs
Diffstat (limited to 'Jellyfin.Server/Filters/WebsocketModelFilter.cs')
| -rw-r--r-- | Jellyfin.Server/Filters/WebsocketModelFilter.cs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Jellyfin.Server/Filters/WebsocketModelFilter.cs b/Jellyfin.Server/Filters/WebsocketModelFilter.cs deleted file mode 100644 index 38afb201d..000000000 --- a/Jellyfin.Server/Filters/WebsocketModelFilter.cs +++ /dev/null @@ -1,32 +0,0 @@ -using MediaBrowser.Common.Plugins; -using MediaBrowser.Controller.LiveTv; -using MediaBrowser.Model.Entities; -using MediaBrowser.Model.Session; -using MediaBrowser.Model.SyncPlay; -using Microsoft.OpenApi.Models; -using Swashbuckle.AspNetCore.SwaggerGen; - -namespace Jellyfin.Server.Filters -{ - /// <summary> - /// Add models used in websocket messaging. - /// </summary> - public class WebsocketModelFilter : IDocumentFilter - { - /// <inheritdoc /> - public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context) - { - context.SchemaGenerator.GenerateSchema(typeof(LibraryUpdateInfo), context.SchemaRepository); - context.SchemaGenerator.GenerateSchema(typeof(IPlugin), context.SchemaRepository); - context.SchemaGenerator.GenerateSchema(typeof(PlayRequest), context.SchemaRepository); - context.SchemaGenerator.GenerateSchema(typeof(PlaystateRequest), context.SchemaRepository); - context.SchemaGenerator.GenerateSchema(typeof(TimerEventInfo), context.SchemaRepository); - context.SchemaGenerator.GenerateSchema(typeof(SendCommand), context.SchemaRepository); - context.SchemaGenerator.GenerateSchema(typeof(GeneralCommandType), context.SchemaRepository); - - context.SchemaGenerator.GenerateSchema(typeof(GroupUpdate<object>), context.SchemaRepository); - - context.SchemaGenerator.GenerateSchema(typeof(SessionMessageType), context.SchemaRepository); - } - } -} |
