BotSharp/src/Infrastructure/BotSharp.Core.Crontab/Models/ScheduleTaskArgs.cs

22 lines
542 B
C#
Raw Normal View History

2024-12-05 17:11:16 +00:00
using System.Text.Json.Serialization;
namespace BotSharp.Core.Crontab.Models;
public class ScheduleTaskArgs
{
[JsonPropertyName("cron_expression")]
public string Cron { get; set; } = null!;
[JsonPropertyName("topic")]
public string Topic { get; set; } = null!;
[JsonPropertyName("description")]
public string Description { get; set; } = null!;
[JsonPropertyName("script")]
public string Script { get; set; } = null!;
[JsonPropertyName("language")]
public string Language { get; set; } = null!;
}