mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
// ==========================================================================
|
|
// 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;
|
|
|
|
namespace Squidex.Extensions.Actions.Slack
|
|
{
|
|
[RuleActionHandler(typeof(SlackActionHandler))]
|
|
[RuleAction(Link = "https://slack.com",
|
|
Display = "Send to Slack",
|
|
Description = "Create a status update at slack to a channel you define.")]
|
|
public sealed class SlackAction : RuleAction
|
|
{
|
|
[AbsoluteUrl]
|
|
[Required]
|
|
[Display(Name = "Webhook Url", Description = "The slack webhook url.")]
|
|
public Uri WebhookUrl { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Text", Description = "The text that is sent as message to slack.")]
|
|
public string Text { get; set; }
|
|
}
|
|
}
|
|
|