2024-12-09 00:29:04 +00:00
|
|
|
namespace BotSharp.Abstraction.Crontab.Models;
|
2024-12-05 17:11:16 +00:00
|
|
|
|
|
|
|
|
public class ScheduleTaskArgs
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("cron_expression")]
|
|
|
|
|
public string Cron { get; set; } = null!;
|
|
|
|
|
|
2024-12-10 18:30:41 +00:00
|
|
|
[JsonPropertyName("title")]
|
|
|
|
|
public string Title { get; set; } = null!;
|
2024-12-05 17:11:16 +00:00
|
|
|
|
|
|
|
|
[JsonPropertyName("description")]
|
|
|
|
|
public string Description { get; set; } = null!;
|
|
|
|
|
|
2024-12-10 18:30:41 +00:00
|
|
|
[JsonPropertyName("to_do_list")]
|
|
|
|
|
public ScheduleTaskItemArgs[] Tasks { get; set; } = null!;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ScheduleTaskItemArgs
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("topic")]
|
|
|
|
|
public string Topic { get; set; } = null!;
|
|
|
|
|
|
2024-12-05 17:11:16 +00:00
|
|
|
[JsonPropertyName("script")]
|
|
|
|
|
public string Script { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("language")]
|
|
|
|
|
public string Language { get; set; } = null!;
|
|
|
|
|
}
|