mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-23 04:52:22 +00:00
24 lines
528 B
C#
24 lines
528 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Lantean.QBitTorrentClient.Models
|
|
{
|
|
public record SearchStatus
|
|
{
|
|
[JsonConstructor]
|
|
public SearchStatus(int id, string status, int total)
|
|
{
|
|
Id = id;
|
|
Status = status;
|
|
Total = total;
|
|
}
|
|
|
|
[JsonPropertyName("id")]
|
|
public int Id { get; }
|
|
|
|
[JsonPropertyName("status")]
|
|
public string Status { get; }
|
|
|
|
[JsonPropertyName("total")]
|
|
public int Total { get; }
|
|
}
|
|
} |