Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Text;
- using System.Threading.Tasks;
- namespace QXS.ChatBot
- {
- public interface ChatSessionInterface
- {
- /// <summary>
- /// The session received a messsage
- /// </summary>
- event Action<ChatSessionInterface, string> OnMessageReceived;
- /// <summary>
- /// The session replied to a message
- /// </summary>
- event Action<ChatSessionInterface, string> OnMessageSent;
- string readMessage();
- void sendMessage(string message);
- string askQuestion(string message);
- bool IsInteractive { get; set; }
- SessionStorage SessionStorage { get; set; }
- void SetResponseHistorySize(int Size);
- void AddResponseToHistory(BotResponse Response);
- Stack<BotResponse> GetResponseHistory();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment