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.
36 lines
1.2 KiB
36 lines
1.2 KiB
using System.Text.Json.Serialization;
|
|
|
|
namespace Kynareth.Models;
|
|
|
|
public class ImageGenerationImage : ImageEndpoint
|
|
{
|
|
[JsonPropertyName("rotate"), ConfigurationKeyName("rotate")]
|
|
public int Rotate { get; set; } = 0;
|
|
|
|
[JsonPropertyName("under"), ConfigurationKeyName("under")]
|
|
public bool PlaceUnder { get; set; } = false;
|
|
|
|
[JsonPropertyName("position"), ConfigurationKeyName("position")]
|
|
public ICollection<GenerationPositionRect> Positions { get; set; }
|
|
}
|
|
|
|
public class ImageGenerationEndpointRead
|
|
{
|
|
[JsonPropertyName("name"), ConfigurationKeyName("name")]
|
|
public string Name { get; set; }
|
|
|
|
[JsonPropertyName("sources"), ConfigurationKeyName("sources")]
|
|
public int SourcesRequired { get; set; }
|
|
}
|
|
|
|
public class ImageGenerationEndpoint : ImageGenerationImage
|
|
{
|
|
[JsonPropertyName("folder"), ConfigurationKeyName("folder")]
|
|
public string Folder { get; set; }
|
|
|
|
[JsonPropertyName("sources"), ConfigurationKeyName("sources")]
|
|
public int SourcesRequired { get; set; } = 0;
|
|
|
|
[JsonPropertyName("variants"), ConfigurationKeyName("variants")]
|
|
public ICollection<ImageGenerationImage> Variants { get; set; }
|
|
} |