mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-23 04:52:22 +00:00
22 lines
464 B
C#
22 lines
464 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Lantean.QBitTorrentClient.Models
|
|
{
|
|
public record Category
|
|
{
|
|
[JsonConstructor]
|
|
public Category(
|
|
string name,
|
|
string? savePath)
|
|
{
|
|
Name = name;
|
|
SavePath = savePath;
|
|
}
|
|
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; }
|
|
|
|
[JsonPropertyName("savePath")]
|
|
public string? SavePath { get; }
|
|
}
|
|
} |