Inheritance: RepositoryEntity
Exemplo n.º 1
0
 public JsonResult TargetTweep(string id)
 {
     var command = new BotCommand() { Value = id, Command = BotCommand.CommandType.TargetTweep };
     commandRepo.Save(RepoKey, command);
     return Json(command, JsonRequestBehavior.AllowGet);
 }
Exemplo n.º 2
0
 public JsonResult Refresh()
 {
     var command = new BotCommand() { Value = DateTime.Now.ToString(), Command = BotCommand.CommandType.Refresh };
     commandRepo.Save(RepoKey, command);
     return Json(command, JsonRequestBehavior.AllowGet);
 }
Exemplo n.º 3
0
 public JsonResult RemovePotentialTweet(string id)
 {
     var command = new BotCommand() { Value = id, Command = BotCommand.CommandType.RemovePotentialTweet };
     commandRepo.Save(RepoKey, command);
     return Json(command, JsonRequestBehavior.AllowGet);
 }
Exemplo n.º 4
0
 public JsonResult IgnoreKeyword(string id)
 {
     var command = new BotCommand() { Value = id, Command = BotCommand.CommandType.IgnoreKeyword };
     commandRepo.Save(RepoKey, command);
     return Json(command, JsonRequestBehavior.AllowGet);
 }