BotSharp/src/Infrastructure/BotSharp.Abstraction/Routing/Models/RoutingArgs.cs

16 lines
420 B
C#
Raw Normal View History

2023-08-28 03:50:10 +00:00
namespace BotSharp.Abstraction.Routing.Models;
public class RoutingArgs
{
2023-09-22 20:38:58 +00:00
[JsonPropertyName("reason")]
public string Reason { get; set; } = string.Empty;
[JsonPropertyName("agent_name")]
2023-09-21 13:08:27 +00:00
public string AgentName { get; set; } = string.Empty;
public override string ToString()
{
2023-09-22 20:38:58 +00:00
return string.IsNullOrEmpty(AgentName) ? "" : $"<Route to {AgentName.ToUpper()} because {Reason}>";
}
}