106 lines
2.8 KiB
C#
106 lines
2.8 KiB
C#
using gehGassi.Dto.Common;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.ComponentModel.DataAnnotations;
|
||
using System.Text;
|
||
|
||
namespace gehGassi.Dto.Walks
|
||
{
|
||
/// <summary>
|
||
/// DTO für das Anlegen eines Walks.
|
||
/// Ist bewusst keine SyncEntity!
|
||
/// </summary>
|
||
public class WalkCreateDto
|
||
{
|
||
/// <summary>
|
||
/// Art der Walk Anfrage
|
||
/// </summary>
|
||
[Required]
|
||
public WalkTypeDto Type { get; set; }
|
||
|
||
/// <summary>
|
||
/// Welche Art von Service soll durchgeführt werden
|
||
/// </summary>
|
||
[Required]
|
||
public WalkServiceTypeDto ServiceType { get; set; }
|
||
|
||
/// <summary>
|
||
/// Id des Walkers
|
||
/// </summary>
|
||
[Required]
|
||
[MaxLength(128)]
|
||
public string DogWalkerId { get; set; }
|
||
|
||
/// <summary>
|
||
/// Id des Hundebesitzers
|
||
/// </summary>
|
||
[Required]
|
||
[MaxLength(128)]
|
||
public string DogOwnerId { get; set; }
|
||
|
||
/// <summary>
|
||
/// Jsonliste mit Id´s der Hunde die ausgewählt wurden
|
||
/// </summary>
|
||
public string DogsJson { get; set; }
|
||
|
||
/// <summary>
|
||
/// Anzahl der Hunde
|
||
/// </summary>
|
||
[Required]
|
||
public int DogCount { get; set; }
|
||
|
||
/// <summary>
|
||
/// Startdatum des Walks mit Urhrzeit
|
||
/// </summary>
|
||
[Required]
|
||
public DateTimeOffset Start { get; set; }
|
||
|
||
/// <summary>
|
||
/// Enddatum des Walks mit Uhrzeit
|
||
/// </summary>
|
||
[Required]
|
||
public DateTimeOffset End { get; set; }
|
||
|
||
/// <summary>
|
||
/// Wo soll der Hunde abgeholt werden
|
||
/// </summary>
|
||
public AddressDto PickupAddress { get; set; }
|
||
|
||
/// <summary>
|
||
/// Breitengrad der Abhol-Adresse
|
||
/// </summary>
|
||
public double PickupAddressLat { get; set; }
|
||
|
||
/// <summary>
|
||
/// Längengrad der Abhol-Adresse
|
||
/// </summary>
|
||
public double PickupAddressLng { get; set; }
|
||
|
||
/// <summary>
|
||
/// Wo soll der Hunde zurückgegeben werden werden
|
||
/// </summary>
|
||
public AddressDto ReturnAddress { get; set; }
|
||
|
||
/// <summary>
|
||
/// Breitengrad der Rückgabe-Adresse
|
||
/// </summary>
|
||
public double ReturnAddressLat { get; set; }
|
||
|
||
/// <summary>
|
||
/// Längengrad der Rückgabe-Adresse
|
||
/// </summary>
|
||
public double ReturnAddressLng { get; set; }
|
||
|
||
/// <summary>
|
||
/// Preis für den Walk / Das Sitting. Wird gesetzt und kann entweder fix sein (öffentliche Anfrage) oder errechnet
|
||
/// </summary>
|
||
public decimal Price { get; set; }
|
||
|
||
/// <summary>
|
||
/// Zusatzinfo für den Walk. Z.B. bei Susi klingeln
|
||
/// </summary>
|
||
[MaxLength(500)]
|
||
public string Info { get; set; }
|
||
}
|
||
}
|