
All checks were successful
Build / Compute Version (push) Successful in 6s
Build / Build Nuget package (CringeBootstrap.Abstractions) (push) Successful in 4m13s
Build / Build Nuget package (NuGet) (push) Successful in 4m12s
Build / Build Nuget package (CringePlugins) (push) Successful in 4m16s
Build / Build Nuget package (SharedCringe) (push) Successful in 4m11s
Build / Build Launcher (push) Successful in 5m13s
34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using System.Collections.Immutable;
|
|
using System.Text.Json.Serialization;
|
|
using NuGet.Converters;
|
|
using NuGet.Versioning;
|
|
|
|
namespace NuGet.Models;
|
|
|
|
public record SearchResult(int TotalHits, [property: JsonPropertyName("data")] ImmutableArray<SearchResultEntry> Entries);
|
|
|
|
public record SearchResultEntry(
|
|
string Id,
|
|
NuGetVersion Version,
|
|
string? Description,
|
|
ImmutableArray<SearchResultPackageVersion> Versions,
|
|
PackageAuthors? Authors,
|
|
string? IconUrl,
|
|
string? LicenseUrl,
|
|
[property: JsonConverter(typeof(StringOrStringArrayConverter))]
|
|
ImmutableArray<string>? Owners,
|
|
string? ProjectUrl,
|
|
Uri Registration,
|
|
string? Summary,
|
|
[property: JsonConverter(typeof(StringOrStringArrayConverter))]
|
|
ImmutableArray<string>? Tags,
|
|
string? Title,
|
|
ulong? TotalDownloads,
|
|
ImmutableArray<PackageType> PackageTypes,
|
|
bool Verified = false);
|
|
|
|
public record SearchResultPackageVersion(
|
|
NuGetVersion Version,
|
|
ulong Downloads,
|
|
[property: JsonPropertyName("@id")] Uri Registration);
|