webapp: .NET 9 Razor Pages, neue rezepte, systemd service
This commit is contained in:
1 parent
07428b0456
commit
466cb09d1c
20 files changed
+969
-4
No files matched your search
@@ -0,0 +1,69 @@
|
||||
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; }
|
||||
}
|
||||
Reference in new issue
Block a user