70 lines
1.6 KiB
C#
Executable File
70 lines
1.6 KiB
C#
Executable File
using System.Text.Json.Serialization;
|
|
|
|
namespace Kochstube.Models;
|
|
|
|
public class Rezept
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public string Id { get; set; } = "";
|
|
|
|
[JsonPropertyName("titel")]
|
|
public string Titel { get; set; } = "";
|
|
|
|
[JsonPropertyName("beschreibung")]
|
|
public string Beschreibung { get; set; } = "";
|
|
|
|
[JsonPropertyName("bild")]
|
|
public string? Bild { get; set; }
|
|
|
|
[JsonPropertyName("kategorie")]
|
|
public string Kategorie { get; set; } = "";
|
|
|
|
[JsonPropertyName("tags")]
|
|
public List<string> Tags { get; set; } = [];
|
|
|
|
[JsonPropertyName("schwierigkeit")]
|
|
public string Schwierigkeit { get; set; } = "";
|
|
|
|
[JsonPropertyName("zubereitungszeit_min")]
|
|
public int ZubereitungszeitMin { get; set; }
|
|
|
|
[JsonPropertyName("portionen")]
|
|
public int Portionen { get; set; }
|
|
|
|
[JsonPropertyName("zutaten")]
|
|
public List<Zutat> Zutaten { get; set; } = [];
|
|
|
|
[JsonPropertyName("zubereitung")]
|
|
public List<string> Zubereitung { get; set; } = [];
|
|
|
|
[JsonPropertyName("notizen")]
|
|
public string? Notizen { get; set; }
|
|
|
|
[JsonPropertyName("quelle")]
|
|
public Quelle? Quelle { get; set; }
|
|
|
|
[JsonPropertyName("erstellt")]
|
|
public string? Erstellt { get; set; }
|
|
}
|
|
|
|
public class Zutat
|
|
{
|
|
[JsonPropertyName("menge")]
|
|
public string Menge { get; set; } = "";
|
|
|
|
[JsonPropertyName("zutat")]
|
|
public string Name { get; set; } = "";
|
|
}
|
|
|
|
public class Quelle
|
|
{
|
|
[JsonPropertyName("name")]
|
|
public string? Name { get; set; }
|
|
|
|
[JsonPropertyName("url")]
|
|
public string? Url { get; set; }
|
|
|
|
[JsonPropertyName("autor")]
|
|
public string? Autor { get; set; }
|
|
}
|