mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Add XML documentation
This commit is contained in:
parent
0d6a63bf84
commit
001c78573e
@ -1,20 +1,33 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Common.Configuration;
|
||||
|
||||
namespace Emby.Server.Implementations.QuickConnect
|
||||
{
|
||||
/// <summary>
|
||||
/// Configuration extension to support persistent quick connect configuration
|
||||
/// </summary>
|
||||
public static class ConfigurationExtension
|
||||
{
|
||||
/// <summary>
|
||||
/// Return the current quick connect configuration
|
||||
/// </summary>
|
||||
/// <param name="manager">Configuration manager</param>
|
||||
/// <returns></returns>
|
||||
public static QuickConnectConfiguration GetQuickConnectConfiguration(this IConfigurationManager manager)
|
||||
{
|
||||
return manager.GetConfiguration<QuickConnectConfiguration>("quickconnect");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Configuration factory for quick connect
|
||||
/// </summary>
|
||||
public class QuickConnectConfigurationFactory : IConfigurationFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns the current quick connect configuration
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<ConfigurationStore> GetConfigurations()
|
||||
{
|
||||
return new ConfigurationStore[]
|
||||
|
@ -1,15 +1,22 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using MediaBrowser.Model.QuickConnect;
|
||||
|
||||
namespace Emby.Server.Implementations.QuickConnect
|
||||
{
|
||||
/// <summary>
|
||||
/// Persistent quick connect configuration
|
||||
/// </summary>
|
||||
public class QuickConnectConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Quick connect configuration object
|
||||
/// </summary>
|
||||
public QuickConnectConfiguration()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Persistent quick connect availability state
|
||||
/// </summary>
|
||||
public QuickConnectState State { get; set; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user