// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using System.ComponentModel.DataAnnotations; using Squidex.Domain.Apps.Core.HandleRules; using Squidex.Domain.Apps.Core.Rules; namespace Squidex.Extensions.Actions.Notification { [RuleAction( Title = "Notification", IconImage = "", IconColor = "#3389ff", Display = "Send a notification", Description = "Send an integrated notification to a user.")] public sealed class NotificationAction : RuleAction { [Required] [Display(Name = "User", Description = "The user id or email.")] [DataType(DataType.Text)] public string User { get; set; } [Required] [Display(Name = "Title", Description = "The text to send.")] [DataType(DataType.MultilineText)] [Formattable] public string Text { get; set; } [Display(Name = "Url", Description = "The optional url to attach to the notification.")] [DataType(DataType.Text)] [Formattable] public string Url { get; set; } [Display(Name = "Client", Description = "An optional client name.")] [DataType(DataType.Text)] public string Client { get; set; } } }