2023-09-19 18:18:29 +00:00
|
|
|
using BotSharp.Abstraction.Routing.Models;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.OpenAPI.ViewModels.Agents;
|
|
|
|
|
|
|
|
|
|
public class RoutingRuleUpdateModel
|
|
|
|
|
{
|
2024-03-25 07:44:37 +00:00
|
|
|
public string? Field { get; set; }
|
2024-03-25 04:40:15 +00:00
|
|
|
public string? Description { get; set; }
|
2024-03-25 07:44:37 +00:00
|
|
|
public string? Type { get; set; }
|
|
|
|
|
public string? FieldType { get; set; }
|
2023-09-19 18:18:29 +00:00
|
|
|
public bool Required { get; set; }
|
|
|
|
|
public string? RedirectTo { get; set; }
|
|
|
|
|
|
|
|
|
|
public RoutingRuleUpdateModel()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static RoutingRule ToDomainElement(RoutingRuleUpdateModel model)
|
|
|
|
|
{
|
|
|
|
|
return new RoutingRule
|
|
|
|
|
{
|
|
|
|
|
Field = model.Field,
|
2023-10-19 22:27:51 +00:00
|
|
|
Description = model.Description,
|
2024-03-25 07:44:37 +00:00
|
|
|
Type = model.Type,
|
|
|
|
|
FieldType = model.FieldType,
|
2023-09-19 18:18:29 +00:00
|
|
|
Required = model.Required,
|
|
|
|
|
RedirectTo = model.RedirectTo
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|