40 lines
977 B
C#
40 lines
977 B
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 Model für das Anlegen einer Konversation
|
|
/// </summary>
|
|
public class CreateConversationDto
|
|
{
|
|
/// <summary>
|
|
/// Id der Konversation
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
[JsonPropertyName("id")]
|
|
public string Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Ersteller der Konversation
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
[JsonPropertyName("senderId")]
|
|
public string SenderId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Ziel der Konversation
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
[JsonPropertyName("receiverId")]
|
|
public string ReceiverId { get; set; }
|
|
}
|
|
}
|