From f5f890e68562e55d4bed16c454c4b4305152b296 Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Tue, 31 Jan 2023 12:18:10 +0100 Subject: Migrate to file-scoped namespaces --- Jellyfin.Api/Models/ConfigurationPageInfo.cs | 101 +++++++++++++-------------- 1 file changed, 50 insertions(+), 51 deletions(-) (limited to 'Jellyfin.Api/Models/ConfigurationPageInfo.cs') diff --git a/Jellyfin.Api/Models/ConfigurationPageInfo.cs b/Jellyfin.Api/Models/ConfigurationPageInfo.cs index ec4a0d1a1..e7bcd6c53 100644 --- a/Jellyfin.Api/Models/ConfigurationPageInfo.cs +++ b/Jellyfin.Api/Models/ConfigurationPageInfo.cs @@ -2,66 +2,65 @@ using System; using MediaBrowser.Common.Plugins; using MediaBrowser.Model.Plugins; -namespace Jellyfin.Api.Models +namespace Jellyfin.Api.Models; + +/// +/// The configuration page info. +/// +public class ConfigurationPageInfo { /// - /// The configuration page info. + /// Initializes a new instance of the class. /// - public class ConfigurationPageInfo + /// Instance of interface. + /// Instance of interface. + public ConfigurationPageInfo(IPlugin? plugin, PluginPageInfo page) { - /// - /// Initializes a new instance of the class. - /// - /// Instance of interface. - /// Instance of interface. - public ConfigurationPageInfo(IPlugin? plugin, PluginPageInfo page) - { - Name = page.Name; - EnableInMainMenu = page.EnableInMainMenu; - MenuSection = page.MenuSection; - MenuIcon = page.MenuIcon; - DisplayName = string.IsNullOrWhiteSpace(page.DisplayName) ? plugin?.Name : page.DisplayName; - PluginId = plugin?.Id; - } + Name = page.Name; + EnableInMainMenu = page.EnableInMainMenu; + MenuSection = page.MenuSection; + MenuIcon = page.MenuIcon; + DisplayName = string.IsNullOrWhiteSpace(page.DisplayName) ? plugin?.Name : page.DisplayName; + PluginId = plugin?.Id; + } - /// - /// Initializes a new instance of the class. - /// - public ConfigurationPageInfo() - { - Name = string.Empty; - } + /// + /// Initializes a new instance of the class. + /// + public ConfigurationPageInfo() + { + Name = string.Empty; + } - /// - /// Gets or sets the name. - /// - /// The name. - public string Name { get; set; } + /// + /// Gets or sets the name. + /// + /// The name. + public string Name { get; set; } - /// - /// Gets or sets a value indicating whether the configurations page is enabled in the main menu. - /// - public bool EnableInMainMenu { get; set; } + /// + /// Gets or sets a value indicating whether the configurations page is enabled in the main menu. + /// + public bool EnableInMainMenu { get; set; } - /// - /// Gets or sets the menu section. - /// - public string? MenuSection { get; set; } + /// + /// Gets or sets the menu section. + /// + public string? MenuSection { get; set; } - /// - /// Gets or sets the menu icon. - /// - public string? MenuIcon { get; set; } + /// + /// Gets or sets the menu icon. + /// + public string? MenuIcon { get; set; } - /// - /// Gets or sets the display name. - /// - public string? DisplayName { get; set; } + /// + /// Gets or sets the display name. + /// + public string? DisplayName { get; set; } - /// - /// Gets or sets the plugin id. - /// - /// The plugin id. - public Guid? PluginId { get; set; } - } + /// + /// Gets or sets the plugin id. + /// + /// The plugin id. + public Guid? PluginId { get; set; } } -- cgit v1.2.3