Пример #1
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="user">The user for whom this is a result</param>
 /// <param name="bot">The bot providing the result</param>
 /// <param name="request">The request that originated this result</param>
 public Result(BotUser user, AIMLBot bot, Request request)
 {
     this.user           = user;
     this.bot            = bot;
     this.request        = request;
     this.request.result = this;
 }
Пример #2
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="rawInput">The raw input from the user</param>
 /// <param name="user">The user who made the request</param>
 /// <param name="bot">The bot to which this is a request</param>
 public Request(string rawInput, BotUser user, AIMLBot bot)
 {
     this.rawInput  = rawInput;
     this.user      = user;
     this.bot       = bot;
     this.StartedOn = DateTime.Now;
 }
 /// <summary>
 /// BotUser Constructor
 /// </summary>
 /// <param name="userID">The ID of the user</param>
 /// <param name="bot">the bot the user is connected to</param>
 public BotUser(Guid userID, AIMLBot bot)
 {
     this.m_UserID   = userID;
     this.Bot        = bot;
     this.Predicates = new SettingsDictionary(this.Bot);
     this.Bot.DefaultPredicates.Clone(this.Predicates);
     this.Predicates.AddSetting("topic", "*");
 }