// ========================================================================== // 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; using Squidex.Infrastructure.Validation; namespace Squidex.Extensions.Actions.Twitter { [RuleAction( Title = "Twitter", IconImage = "", IconColor = "#1da1f2", Display = "Tweet", Description = "Tweet an update with your twitter account.", ReadMore = "https://twitter.com")] public sealed record TweetAction : RuleAction { [LocalizedRequired] [Display(Name = "Access Token", Description = " The generated access token.")] [Editor(RuleFieldEditor.Text)] public string AccessToken { get; set; } [LocalizedRequired] [Display(Name = "Access Secret", Description = " The generated access secret.")] [Editor(RuleFieldEditor.Text)] public string AccessSecret { get; set; } [LocalizedRequired] [Display(Name = "Text", Description = "The text that is sent as tweet to twitter.")] [Editor(RuleFieldEditor.TextArea)] [Formattable] public string Text { get; set; } } }