52 lines
1.1 KiB
C#
52 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using gehGassiApp.Domain.Common;
|
|
using Platform = gehGassiApp.Domain.Common.Platform;
|
|
|
|
|
|
namespace gehGassiApp.Domain.Pushnotifications
|
|
{
|
|
/// <summary>
|
|
/// Info für die Registrierung eines Devices für Pushnotifications
|
|
/// </summary>
|
|
public class DeviceInstallation
|
|
{
|
|
/// <summary>
|
|
/// Eindeutige Id des Devices am Gerät
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string InstallationId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Plattform
|
|
/// </summary>
|
|
[Required]
|
|
public Platform Platform { get; set; }
|
|
|
|
/// <summary>
|
|
/// Notification-Platform die verwendet werden soll
|
|
/// </summary>
|
|
[Required]
|
|
public NotificationPlatform NotificationPlatform { get; set; }
|
|
|
|
/// <summary>
|
|
/// Welcher Pushnotification-Channel wurde gebucht
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string Channel { get; set; }
|
|
|
|
/// <summary>
|
|
/// Sprache am Gerät
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(2)]
|
|
public string Language { get; set; }
|
|
}
|
|
}
|