48 lines
1.0 KiB
C#

using gehGassi.Dto.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace gehGassi.Dto.Pushnotifications
{
/// <summary>
/// DTO für die Registrierung eines Devices für Pushnotifications
/// </summary>
public class DeviceInstallationDto
{
/// <summary>
/// Eindeutige Id des Devices am Gerät
/// </summary>
[Required]
[MaxLength(128)]
public string InstallationId { get; set; }
/// <summary>
/// Plattform
/// </summary>
[Required]
public PlatformDto Platform { get; set; }
/// <summary>
/// Notification-Platform die verwendet werden soll
/// </summary>
[Required]
public NotificationPlatformDto NotificationPlatform { get; set; }
/// <summary>
/// Welcher Pushnotification-Channel wurde gebucht
/// </summary>
[Required]
[MaxLength(512)]
public string Channel { get; set; }
/// <summary>
/// Sprache am Gerät
/// </summary>
[Required]
[MaxLength(2)]
public string Language { get; set; }
}
}