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.
42 lines
1.5 KiB
42 lines
1.5 KiB
// ==========================================================================
|
|
// 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;
|
|
|
|
namespace Squidex.Extensions.Actions.Discourse
|
|
{
|
|
[RuleActionHandler(typeof(DiscourseActionHandler))]
|
|
[RuleAction(Description = "")]
|
|
public sealed class DiscourseAction : RuleAction
|
|
{
|
|
[AbsoluteUrl]
|
|
[Required]
|
|
[Display(Name = "Url", Description = "he url to the discourse server.")]
|
|
public Uri Url { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Api Key", Description = "The api key.")]
|
|
public string ApiKey { get; set; }
|
|
|
|
[Required]
|
|
[Display(Name = "Text", Description = "The text as markdown.")]
|
|
public string Text { get; set; }
|
|
|
|
[Display(Name = "Title", Description = "The optional title when creating new topics.")]
|
|
public string Title { get; set; }
|
|
|
|
[Display(Name = "Topic", Description = "The optional topic id.")]
|
|
public int? Topic { get; set; }
|
|
|
|
[Display(Name = "Category", Description = "The optional category id.")]
|
|
public int? Category { get; set; }
|
|
}
|
|
}
|
|
|