fixes and tweaks
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
namespace Lutra.Application.Models.Supermarkten
|
||||
{
|
||||
public record Supermarkt
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
namespace Lutra.Application.Models.Supermarkten;
|
||||
|
||||
public required string Naam { get; init; }
|
||||
}
|
||||
public record Supermarkt
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
|
||||
public required string Naam { get; init; }
|
||||
}
|
||||
|
||||
@@ -1,17 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
namespace Lutra.Application.Models.Verspakketten;
|
||||
|
||||
namespace Lutra.Application.Models.Verspakketten;
|
||||
|
||||
public class Beoordeling
|
||||
public record Beoordeling
|
||||
{
|
||||
[Range(1, 10)]
|
||||
public required int CijferSmaak { get; init; }
|
||||
|
||||
[Range(1, 10)]
|
||||
public required int CijferBereiden { get; init; }
|
||||
|
||||
public required bool Aanbevolen { get; init; }
|
||||
|
||||
[MaxLength(1024)]
|
||||
public string? Tekst { get; init; }
|
||||
}
|
||||
|
||||
@@ -1,23 +1,24 @@
|
||||
using Lutra.Application.Models.Supermarkten;
|
||||
|
||||
namespace Lutra.Application.Models.Verspakketten
|
||||
namespace Lutra.Application.Models.Verspakketten;
|
||||
|
||||
public record Verspakket
|
||||
{
|
||||
public record Verspakket
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
public required Guid Id { get; init; }
|
||||
|
||||
public required string Naam { get; init; }
|
||||
public required string Naam { get; init; }
|
||||
|
||||
public int? PrijsInCenten { get; init; }
|
||||
public int? PrijsInCenten { get; init; }
|
||||
|
||||
public int AantalPersonen { get; init; }
|
||||
public int AantalPersonen { get; init; }
|
||||
|
||||
public double? AverageCijferSmaak { get; init; }
|
||||
|
||||
public double? AverageCijferBereiden { get; init; }
|
||||
|
||||
public Beoordeling[]? Beoordelingen { get; init; }
|
||||
public Beoordeling[]? Beoordelingen { get; init; }
|
||||
|
||||
public Supermarkt? Supermarkt { get; init; }
|
||||
}
|
||||
public VerspakketFotoResponse[]? Fotos { get; init; }
|
||||
|
||||
public Supermarkt? Supermarkt { get; init; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Lutra.Application.Models.Verspakketten;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a foto to associate with a verspakket.
|
||||
/// </summary>
|
||||
public sealed record VerspakketFoto(
|
||||
/// <summary>Base64-encoded image data.</summary>
|
||||
string Base64Data,
|
||||
bool IsMainImage);
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Lutra.Application.Models.Verspakketten;
|
||||
|
||||
public sealed record VerspakketFotoResponse(
|
||||
Guid Id,
|
||||
/// <summary>Base64-encoded image data.</summary>
|
||||
string Base64Data,
|
||||
bool IsMainImage);
|
||||
@@ -0,0 +1,22 @@
|
||||
using Lutra.Application.Models.Supermarkten;
|
||||
|
||||
namespace Lutra.Application.Models.Verspakketten;
|
||||
|
||||
public record VerspakketSummary
|
||||
{
|
||||
public required Guid Id { get; init; }
|
||||
|
||||
public required string Naam { get; init; }
|
||||
|
||||
public int? PrijsInCenten { get; init; }
|
||||
|
||||
public int AantalPersonen { get; init; }
|
||||
|
||||
public double? AverageCijferSmaak { get; init; }
|
||||
|
||||
public double? AverageCijferBereiden { get; init; }
|
||||
|
||||
public VerspakketFotoResponse? Foto { get; init; }
|
||||
|
||||
public Supermarkt? Supermarkt { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user