2023-08-09 21:49:55 +00:00
|
|
|
namespace BotSharp.Abstraction.Conversations.Models;
|
|
|
|
|
|
2024-03-26 21:57:13 +00:00
|
|
|
public class ConversationState : Dictionary<string, StateKeyValue>
|
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-03-26 21:57:13 +00:00
|
|
|
this[pair.Key] = pair;
|
2023-09-03 22:43:50 +00:00
|
|
|
}
|
|
|
|
|
}
|
2023-08-09 21:49:55 +00:00
|
|
|
}
|