gehgassi_backend/gehGassi.Dto/Walks/PublicWalkResponseDto.cs

138 lines
3.6 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using gehGassi.Dto.Common;
namespace gehGassi.Dto.Walks
{
/// <summary>
/// Dto für eine Antwort auf eine öffentliche anfrage
/// </summary>
public class PublicWalkResponseDto : SyncEntityDto
{
/// <summary>
/// Id der öffentlichen Anfrage
/// </summary>
[Required]
[MaxLength(128)]
public string PublicWalkRequestId { get; set; }
/// <summary>
/// Id des App-Users / Walker
/// Ist eine AppUserId
/// </summary>
[Required]
[MaxLength(128)]
public string DogWalkerId { get; set; }
/// <summary>
/// Preis den der Walker anbietet
/// </summary>
[Required]
public decimal Price { get; set; }
/// <summary>
/// Zusatzinfo für das Angebot
/// </summary>
[MaxLength(500)]
public string Info { get; set; }
/// <summary>
/// Optional: Antwort des Hundebesitzers
/// </summary>
[MaxLength(500)]
public string Answer { get; set; }
/// <summary>
/// Status des Angebotes
/// </summary>
public PublicWalkResponseStatusDto Status { get; set; }
/// <summary>
/// Grund für die Stornierung
/// </summary>
[MaxLength(500)]
public string CancellationReason { get; set; }
/// <summary>
/// Wann wurde das Angebot erstellt?
/// </summary>
public DateTimeOffset Created { get; set; }
}
/// <summary>
/// Dto für eine Antwort auf eine öffentliche Anfrage mit Namen aufgelöst
/// </summary>
public class PublicWalkResponseWithNamesDto : SyncEntityDto
{
/// <summary>
/// Id der öffentlichen Anfrage
/// </summary>
public string PublicWalkRequestId { get; set; }
/// <summary>
/// Id des App-Users / Walker
/// Ist eine AppUserId
/// </summary>
public string DogWalkerId { get; set; }
/// <summary>
/// Name des DogWalkers
/// </summary>
public string DogWalkerName { get; set; }
/// <summary>
/// Foto des DogWalkers
/// </summary>
public string DogWalkerPhoto { get; set; }
/// <summary>
/// Dogwalker verifiziert?
/// </summary>
public bool DogWalkerVerified { get; set; }
/// <summary>
/// Dogwalker blockiert?
/// </summary>
public bool DogWalkerBlocked { get; set; }
/// <summary>
/// Dogwalker gesperrt?
/// </summary>
public bool DogWalkerLocked { get; set; }
/// <summary>
/// Preis den der Walker anbietet
/// </summary>
[Required]
public decimal Price { get; set; }
/// <summary>
/// Zusatzinfo für das Angebot
/// </summary>
public string Info { get; set; }
/// <summary>
/// Optional: Antwort des Hundebesitzers
/// </summary>
public string Answer { get; set; }
/// <summary>
/// Status des Angebotes
/// </summary>
public PublicWalkResponseStatusDto Status { get; set; }
/// <summary>
/// Grund für die Stornierung
/// </summary>
public string CancellationReason { get; set; }
/// <summary>
/// Wann wurde das Angebot erstellt?
/// </summary>
public DateTimeOffset Created { get; set; }
}
}