BotSharp/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Routing/RoutingProfileViewModel.cs

21 lines
517 B
C#
Raw Normal View History

2023-09-03 04:11:53 +00:00
using BotSharp.Abstraction.Routing.Models;
namespace BotSharp.OpenAPI.ViewModels.Routing;
public class RoutingProfileViewModel
{
2023-09-07 22:04:34 +00:00
public string Id { get; set; }
2023-09-03 04:11:53 +00:00
public string Name { get; set; }
2023-09-07 22:04:34 +00:00
public List<string> AgentIds { get; set; }
2023-09-03 04:11:53 +00:00
public static RoutingProfileViewModel FromRoutingProfile(RoutingProfile profile)
{
return new RoutingProfileViewModel
{
2023-09-07 22:04:34 +00:00
Id = profile.Id,
2023-09-03 04:11:53 +00:00
Name = profile.Name,
AgentIds = profile.AgentIds,
};
}
}