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.
32 lines
910 B
32 lines
910 B
using System.Text.Json.Serialization;
|
|
|
|
namespace Kynareth.Models;
|
|
|
|
public class PositionRect
|
|
{
|
|
[JsonPropertyName("x"), ConfigurationKeyName("x")]
|
|
public int X { get; set; }
|
|
[JsonPropertyName("y"), ConfigurationKeyName("y")]
|
|
public int Y { get; set; }
|
|
[JsonPropertyName("w"), ConfigurationKeyName("w")]
|
|
public int Width { get; set; }
|
|
[JsonPropertyName("h"), ConfigurationKeyName("h")]
|
|
public int Height { get; set; }
|
|
}
|
|
|
|
public class GenerationPositionRect : PositionRect
|
|
{
|
|
[JsonPropertyName("r"), ConfigurationKeyName("r")]
|
|
public int Rotation { get; set; }
|
|
[JsonPropertyName("background"), ConfigurationKeyName("background")]
|
|
public string Background { get; set; }
|
|
}
|
|
|
|
public class ImageEndpoint
|
|
{
|
|
[JsonPropertyName("name"), ConfigurationKeyName("name")]
|
|
public string Name { get; set; }
|
|
|
|
[JsonPropertyName("image"), ConfigurationKeyName("image")]
|
|
public string Image { get; set; }
|
|
} |