BotSharp/src/Infrastructure/BotSharp.Abstraction/Conversations/Models/ConversationState.cs

18 lines
339 B
C#
Raw Normal View History

2023-08-09 21:49:55 +00:00
namespace BotSharp.Abstraction.Conversations.Models;
2024-01-02 17:40:08 +00:00
public class ConversationState : Dictionary<string, List<StateValue>>
2023-08-09 21:49:55 +00:00
{
2023-09-03 22:43:50 +00:00
public ConversationState()
{
2024-01-02 17:40:08 +00:00
2023-09-03 22:43:50 +00:00
}
2023-09-09 21:44:25 +00:00
public ConversationState(List<StateKeyValue> pairs)
2023-09-03 22:43:50 +00:00
{
foreach (var pair in pairs)
{
2024-01-02 17:40:08 +00:00
this[pair.Key] = pair.Values;
2023-09-03 22:43:50 +00:00
}
}
2023-08-09 21:49:55 +00:00
}