20 lines
510 B
C#
20 lines
510 B
C#
namespace BotSharp.Abstraction.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!;
|
|
}
|