25 lines
602 B
C#
25 lines
602 B
C#
using BotSharp.Abstraction.Tasks.Models;
|
|
|
|
namespace BotSharp.OpenAPI.ViewModels.Agents;
|
|
|
|
public class AgentTaskUpdateModel
|
|
{
|
|
public string? Name { get; set; }
|
|
public string? Description { get; set; }
|
|
public string? Content { get; set; }
|
|
public bool Enabled { get; set; }
|
|
public string? DirectAgentId { get; set; }
|
|
|
|
public AgentTask ToAgentTask()
|
|
{
|
|
return new AgentTask
|
|
{
|
|
Name = Name,
|
|
Description = Description,
|
|
Content = Content,
|
|
Enabled = Enabled,
|
|
DirectAgentId = DirectAgentId
|
|
};
|
|
}
|
|
}
|