using gehGassi.Dto.Common; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using gehGassi.Domain.Common; namespace gehGassi.Domain.Pushnotifications { /// /// Repräsentiert eine Installation für ein Gerät für Pushnotifications /// public class DeviceInstallation { /// /// Eindeutige Id des Devices am Gerät /// [Required] [MaxLength(128)] public string InstallationId { get; set; } /// /// Plattform /// [Required] public Platform Platform { get; set; } /// /// Notification-Platform die verwendet werden soll /// [Required] public NotificationPlatform NotificationPlatform { get; set; } /// /// Welcher Pushnotification-Channel wurde gebucht /// [Required] [MaxLength(512)] public string Channel { get; set; } /// /// Sprache am Gerät /// [Required] [MaxLength(2)] public string Language { get; set; } /// /// Liste der Tags für welche das Gerät registriert werden soll /// public List Tags { get; set; } /// /// Erstellt eine Instanz /// public DeviceInstallation() { Tags = new List(); } } }