30 lines
685 B
C#
30 lines
685 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace BotSharp.Abstraction.Routing.Models;
|
|
|
|
public class RoutingRecord
|
|
{
|
|
[JsonPropertyName("agent_id")]
|
|
public string AgentId { get; set; }
|
|
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; }
|
|
|
|
[JsonPropertyName("description")]
|
|
public string Description { get; set; }
|
|
|
|
[JsonPropertyName("required")]
|
|
public List<string> RequiredFields { get; set; } = new List<string>();
|
|
|
|
[JsonPropertyName("redirect_to")]
|
|
public string RedirectTo { get; set; }
|
|
|
|
[JsonPropertyName("disabled")]
|
|
public bool Disabled { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return Name;
|
|
}
|
|
}
|