30 lines
723 B
C#
30 lines
723 B
C#
using System.Collections.Generic;
|
|
using isnd.Data.Packages;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace isnd.Data.Catalog
|
|
{
|
|
public class PackageRegistrationQuery
|
|
{
|
|
public PackageRegistrationQuery()
|
|
{
|
|
}
|
|
|
|
[JsonProperty("query")]
|
|
public string Query { get; set; }
|
|
|
|
[JsonProperty("prerelease")]
|
|
public bool Prerelease { get; set; } = true;
|
|
[JsonProperty("skip")]
|
|
|
|
public int Skip { get; set; } = 0;
|
|
[JsonProperty("take")]
|
|
|
|
public int Take { get; set; } = 25;
|
|
|
|
override public string ToString()
|
|
{
|
|
return $"[PackageRegistrationQuery Query:{Query} Prerelease:{Prerelease} Skip:{Skip} Take:{Take}]";
|
|
}
|
|
}
|
|
} |