public void RetrieveWitnessMessages(Offence offence) { OffenceController offenceController = new OffenceController(); Scraper WitnessScraper = new Scraper(offence, true, offenceController.Hashtag(offence)); WitnessScraper.UpdateSocialMediaMessages(1); }
/// <summary> /// Publish a tweet, Update the database and update the socialmediamessages /// </summary> public void SendTweet() { DBContext dBContext = new DBContext(); Scraper scraper = new Scraper(_Offence); scraper.Connect(); Tweet.PublishTweet(CreateWitnessMessage()); _OffenceController.UpdateHashtag(_Offence); _SendMessageController.SetSendMessage(_Offence, this.CreateWitnessMessage()); Scraper WitnessScraper = new Scraper(_Offence, true, _OffenceController.Hashtag(_Offence));; WitnessScraper.UpdateSocialMediaMessages(1); }