using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using System.Text.Json.Serialization; using gehGassi.Dto.Common; namespace gehGassi.Dto.Messages { /// /// DTO für eine Konversation. /// Achtung: der Receipient wird invers zum Sender gesetzt! /// public class ConversationDto : SyncEntityDto { /// /// Ziel der Konversation - UserId /// [JsonPropertyName("recipient")] public string Recipient { get; set; } /// /// Typ des Empfängers. DogOwner oder DogWalker /// [JsonPropertyName("receipientType")] public AppUserTypeDto ReceipientType { get; set; } /// /// Name des Addressaten /// [JsonPropertyName("recipientName")] public string RecipientName { get; set; } /// /// Kürzel des Addressaten /// [JsonPropertyName("recipientShort")] public string RecipientShort { get; set; } /// /// Foto /// [JsonPropertyName("recipientPhoto")] public string RecipientPhoto { get; set; } /// /// Wann wurde die Konversation erstellt /// [JsonPropertyName("created")] public DateTimeOffset Created { get; set; } } }