2023-08-09 21:49:55 +00:00
|
|
|
namespace BotSharp.Abstraction.Conversations;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Conversation state service to track the context in the conversation lifecycle
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IConversationStateService
|
|
|
|
|
{
|
2023-09-06 03:19:36 +00:00
|
|
|
ConversationState Load(string conversationId);
|
2023-08-09 21:49:55 +00:00
|
|
|
string GetState(string name);
|
2023-09-06 03:19:36 +00:00
|
|
|
ConversationState GetStates();
|
2023-08-14 17:00:01 +00:00
|
|
|
void SetState(string name, string value);
|
2023-08-15 15:41:34 +00:00
|
|
|
void CleanState();
|
2023-08-09 21:49:55 +00:00
|
|
|
void Save();
|
|
|
|
|
}
|