mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-24 08:33:36 +00:00
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Lantean.QBitTorrentClient.Models
|
|
{
|
|
public record SearchPlugin
|
|
{
|
|
[JsonConstructor]
|
|
public SearchPlugin(
|
|
bool enabled,
|
|
string fullName,
|
|
string name,
|
|
IReadOnlyList<SearchCategory> supportedCategories,
|
|
string url,
|
|
string version)
|
|
{
|
|
Enabled = enabled;
|
|
FullName = fullName;
|
|
Name = name;
|
|
SupportedCategories = supportedCategories;
|
|
Url = url;
|
|
Version = version;
|
|
}
|
|
|
|
[JsonPropertyName("enabled")]
|
|
public bool Enabled { get; set; }
|
|
|
|
[JsonPropertyName("fullName")]
|
|
public string FullName { get; set; }
|
|
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; }
|
|
|
|
[JsonPropertyName("supportedCategories")]
|
|
public IReadOnlyList<SearchCategory> SupportedCategories { get; set; }
|
|
|
|
[JsonPropertyName("url")]
|
|
public string Url { get; set; }
|
|
|
|
[JsonPropertyName("version")]
|
|
public string Version { get; set; }
|
|
}
|
|
} |