You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
3.2 KiB
106 lines
3.2 KiB
1 year ago
|
using Refit;
|
||
1 year ago
|
|
||
1 year ago
|
namespace StabilityMatrix.Core.Models.Api;
|
||
1 year ago
|
|
||
|
|
||
|
public class CivitModelsRequest
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// The number of results to be returned per page. This can be a number between 1 and 200. By default, each page will return 100 results
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("limit")]
|
||
1 year ago
|
public int? Limit { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The page from which to start fetching models
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("page")]
|
||
1 year ago
|
public int? Page { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Search query to filter models by name
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("query")]
|
||
1 year ago
|
public string? Query { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Search query to filter models by tag
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("tag")]
|
||
1 year ago
|
public string? Tag { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Search query to filter models by user
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("username")]
|
||
1 year ago
|
public string? Username { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The type of model you want to filter with. If none is specified, it will return all types
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("types")]
|
||
1 year ago
|
public CivitModelType[]? Types { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The order in which you wish to sort the results
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("sort")]
|
||
1 year ago
|
public CivitSortMode? Sort { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The time frame in which the models will be sorted
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("period")]
|
||
1 year ago
|
public CivitPeriod? Period { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// The rating you wish to filter the models with. If none is specified, it will return models with any rating
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("rating")]
|
||
1 year ago
|
public int? Rating { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Filter to models that require or don't require crediting the creator
|
||
|
/// <remarks>Requires Authentication</remarks>
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("favorites")]
|
||
1 year ago
|
public bool? Favorites { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Filter to hidden models of the authenticated user
|
||
|
/// <remarks>Requires Authentication</remarks>
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("hidden")]
|
||
1 year ago
|
public bool? Hidden { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Only include the primary file for each model (This will use your preferred format options if you use an API token or session cookie)
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("primaryFileOnly")]
|
||
1 year ago
|
public bool? PrimaryFileOnly { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Filter to models that allow or don't allow creating derivatives
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("allowDerivatives")]
|
||
1 year ago
|
public bool? AllowDerivatives { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Filter to models that allow or don't allow derivatives to have a different license
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("allowDifferentLicenses")]
|
||
1 year ago
|
public bool? AllowDifferentLicenses { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Filter to models based on their commercial permissions
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("allowCommercialUse")]
|
||
1 year ago
|
public CivitCommercialUse? AllowCommercialUse { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// If false, will return safer images and hide models that don't have safe images
|
||
|
/// </summary>
|
||
1 year ago
|
[AliasAs("nsfw")]
|
||
|
public string? Nsfw { get; set; }
|
||
1 year ago
|
}
|