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