53 lines
1.5 KiB
C#
53 lines
1.5 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// DTO für eine Konversation.
|
|
/// Achtung: der Receipient wird invers zum Sender gesetzt!
|
|
/// </summary>
|
|
public class ConversationDto : SyncEntityDto
|
|
{
|
|
/// <summary>
|
|
/// Ziel der Konversation - UserId
|
|
/// </summary>
|
|
[JsonPropertyName("recipient")]
|
|
public string Recipient { get; set; }
|
|
|
|
/// <summary>
|
|
/// Typ des Empfängers. DogOwner oder DogWalker
|
|
/// </summary>
|
|
[JsonPropertyName("receipientType")]
|
|
public AppUserTypeDto ReceipientType { get; set; }
|
|
|
|
/// <summary>
|
|
/// Name des Addressaten
|
|
/// </summary>
|
|
[JsonPropertyName("recipientName")]
|
|
public string RecipientName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Kürzel des Addressaten
|
|
/// </summary>
|
|
[JsonPropertyName("recipientShort")]
|
|
public string RecipientShort { get; set; }
|
|
|
|
/// <summary>
|
|
/// Foto
|
|
/// </summary>
|
|
[JsonPropertyName("recipientPhoto")]
|
|
public string RecipientPhoto { get; set; }
|
|
|
|
/// <summary>
|
|
/// Wann wurde die Konversation erstellt
|
|
/// </summary>
|
|
[JsonPropertyName("created")]
|
|
public DateTimeOffset Created { get; set; }
|
|
}
|
|
}
|