22 lines
542 B
C#
22 lines
542 B
C#
|
|
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!;
|
||
|
|
}
|