2023-08-22 04:49:42 +00:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
2023-08-28 03:50:10 +00:00
|
|
|
namespace BotSharp.Abstraction.Routing.Models;
|
2023-08-22 04:49:42 +00:00
|
|
|
|
2023-08-25 15:33:21 +00:00
|
|
|
public class RoutingRecord
|
2023-08-22 04:49:42 +00:00
|
|
|
{
|
|
|
|
|
[JsonPropertyName("agent_id")]
|
|
|
|
|
public string AgentId { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("name")]
|
2023-08-25 15:33:21 +00:00
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("description")]
|
|
|
|
|
public string Description { get; set; }
|
2023-08-22 04:49:42 +00:00
|
|
|
|
|
|
|
|
[JsonPropertyName("required")]
|
|
|
|
|
public List<string> RequiredFields { get; set; }
|
|
|
|
|
|
2023-08-23 18:32:13 +00:00
|
|
|
[JsonPropertyName("redirect_to")]
|
|
|
|
|
public string RedirectTo { get; set; }
|
|
|
|
|
|
2023-08-27 11:07:22 +00:00
|
|
|
[JsonPropertyName("disabled")]
|
|
|
|
|
public bool Disabled { get; set; }
|
|
|
|
|
|
2023-08-22 04:49:42 +00:00
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2023-08-25 15:33:21 +00:00
|
|
|
return Name;
|
2023-08-22 04:49:42 +00:00
|
|
|
}
|
|
|
|
|
}
|