// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // 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( Title = "Slack", IconImage = "", IconColor = "#5c3a58", Display = "Send to Slack", Description = "Create a status update to a slack channel.", ReadMore = "https://slack.com")] public sealed class SlackAction : RuleAction { [AbsoluteUrl] [LocalizedRequired] [Display(Name = "Webhook Url", Description = "The slack webhook url.")] [DataType(DataType.Text)] public Uri WebhookUrl { get; set; } [LocalizedRequired] [Display(Name = "Text", Description = "The text that is sent as message to slack.")] [DataType(DataType.MultilineText)] [Formattable] public string Text { get; set; } } }