// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschränkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using System; using System.ComponentModel.DataAnnotations; using Squidex.Domain.Apps.Core.HandleRules; using Squidex.Domain.Apps.Core.Rules; using Squidex.Infrastructure.Validation; namespace Squidex.Extensions.Actions.Slack { [RuleAction( IconImage = "", IconColor = "#5c3a58", Display = "Send to Slack", Description = "Create a status update at slack to a channel you define.", ReadMore = "https://slack.com")] public sealed class SlackAction : RuleAction { [AbsoluteUrl] [Required] [Display(Name = "Webhook Url", Description = "The slack webhook url.")] [DataType(DataType.Text)] public Uri WebhookUrl { get; set; } [Required] [Display(Name = "Text", Description = "The text that is sent as message to slack.")] [DataType(DataType.MultilineText)] [Formattable] public string Text { get; set; } } }