public JsonResult TargetTweep(string id) { var command = new BotCommand() { Value = id, Command = BotCommand.CommandType.TargetTweep }; commandRepo.Save(RepoKey, command); return Json(command, JsonRequestBehavior.AllowGet); }
public JsonResult Refresh() { var command = new BotCommand() { Value = DateTime.Now.ToString(), Command = BotCommand.CommandType.Refresh }; commandRepo.Save(RepoKey, command); return Json(command, JsonRequestBehavior.AllowGet); }
public JsonResult RemovePotentialTweet(string id) { var command = new BotCommand() { Value = id, Command = BotCommand.CommandType.RemovePotentialTweet }; commandRepo.Save(RepoKey, command); return Json(command, JsonRequestBehavior.AllowGet); }
public JsonResult IgnoreKeyword(string id) { var command = new BotCommand() { Value = id, Command = BotCommand.CommandType.IgnoreKeyword }; commandRepo.Save(RepoKey, command); return Json(command, JsonRequestBehavior.AllowGet); }