2025-07-07 17:24:44 +00:00
|
|
|
namespace BotSharp.Abstraction.SideCar.Models;
|
|
|
|
|
|
|
|
|
|
public class SideCarOptions
|
|
|
|
|
{
|
|
|
|
|
public bool IsInheritStates { get; set; }
|
|
|
|
|
public IEnumerable<string>? InheritStateKeys { get; set; }
|
|
|
|
|
|
|
|
|
|
public static SideCarOptions Empty()
|
|
|
|
|
{
|
2025-07-14 22:31:03 +00:00
|
|
|
return new();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static SideCarOptions InheritStates(IEnumerable<string>? targetStates = null)
|
|
|
|
|
{
|
|
|
|
|
return new()
|
|
|
|
|
{
|
|
|
|
|
IsInheritStates = true,
|
|
|
|
|
InheritStateKeys = targetStates
|
|
|
|
|
};
|
2025-07-07 17:24:44 +00:00
|
|
|
}
|
|
|
|
|
}
|