26 lines
567 B
C#
26 lines
567 B
C#
|
|
using BotSharp.Abstraction.Routing.Models;
|
||
|
|
|
||
|
|
namespace BotSharp.OpenAPI.ViewModels.Agents;
|
||
|
|
|
||
|
|
public class RoutingRuleUpdateModel
|
||
|
|
{
|
||
|
|
public string Field { get; set; }
|
||
|
|
public bool Required { get; set; }
|
||
|
|
public string? RedirectTo { get; set; }
|
||
|
|
|
||
|
|
public RoutingRuleUpdateModel()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
public static RoutingRule ToDomainElement(RoutingRuleUpdateModel model)
|
||
|
|
{
|
||
|
|
return new RoutingRule
|
||
|
|
{
|
||
|
|
Field = model.Field,
|
||
|
|
Required = model.Required,
|
||
|
|
RedirectTo = model.RedirectTo
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|