2021-12-02 10:53:56 +00:00
|
|
|
using System.Collections.Generic;
|
2021-06-09 15:04:03 +00:00
|
|
|
|
2021-11-30 19:27:51 +00:00
|
|
|
namespace Flow.Launcher.Plugin.WindowsSettings.Classes
|
2021-06-09 15:04:03 +00:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A windows setting
|
|
|
|
|
/// </summary>
|
2021-10-30 04:08:59 +00:00
|
|
|
internal record WindowsSetting
|
2021-06-09 15:04:03 +00:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="WindowsSetting"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public WindowsSetting()
|
|
|
|
|
{
|
|
|
|
|
Name = string.Empty;
|
|
|
|
|
Area = string.Empty;
|
|
|
|
|
Command = string.Empty;
|
|
|
|
|
Type = string.Empty;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the name of this setting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the area of this setting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Area { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the command of this setting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Command { get; set; }
|
|
|
|
|
|
2021-11-30 21:37:45 +00:00
|
|
|
private string type = string.Empty;
|
|
|
|
|
|
2021-06-09 15:04:03 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type of the windows setting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Type { get; set; }
|
2021-11-30 21:37:45 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the type display name of this setting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? DisplayType { get; set; }
|
2021-06-09 15:04:03 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the alternative names of this setting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<string>? AltNames { get; set; }
|
|
|
|
|
|
2021-09-26 23:28:22 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the Keywords names of this task link.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<IEnumerable<string>>? Keywords { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2021-12-02 10:53:56 +00:00
|
|
|
/// Gets or sets the Glyph of this setting
|
2021-09-26 23:28:22 +00:00
|
|
|
/// </summary>
|
|
|
|
|
public string? glyph { get; set; }
|
|
|
|
|
|
2021-06-09 15:04:03 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets a additional note of this settings.
|
|
|
|
|
/// <para>(e.g. why is not supported on your system)</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Note { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the minimum need Windows build for this setting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint? IntroducedInBuild { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the Windows build since this settings is not longer present.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint? DeprecatedInBuild { get; set; }
|
|
|
|
|
}
|
2021-11-30 21:37:45 +00:00
|
|
|
}
|