Inheritance: ISendable, ISendableVisitable
Example #1
0
 public HasVictimBuilder(HasVictim baseHasVictim, string victim)
 {
     _baseHasVictim = baseHasVictim;
       _baseHasVictim.Victim = victim;
 }
Example #2
0
 public HasVictimBuilder(HasVictim baseHasVictim, string victim)
 {
     _baseHasVictim        = baseHasVictim;
     _baseHasVictim.Victim = victim;
 }
Example #3
0
 private HasVictim DeterminesHasVictim(string word, UserHistory userHistory, string key, IDictionary<string, double> externalDictionary, HasVictim hasVictim, bool wait)
 {
     if (word == null) return null;
       var duration = TimeSpan.FromSeconds(externalDictionary[word]);
       if (!userHistory.History.ContainsKey(key))
     userHistory.History.Add(key, new Dictionary<string, int>());
       var words = userHistory.History[key];
       if (!words.ContainsKey(word))
     words.Add(word, 0);
       words[word]++;
       Datastore.SaveUserHistory(userHistory, wait);
       return new HasVictimBuilder(hasVictim, _message.SenderName).IncreaseDuration(duration, words[word], "prohibited phrase").Build();
 }