public async void SendMovingAvgEmail(string ticker) { Email MovingAvgEmail = new Email { Subject = ticker + "'s" + " Moving Average Crossed!", Content = "Big news! " + ticker + "'s moving average crossed its market value! Head over to market watch to take a closer look!", From = "*****@*****.**", UpFive = false, DownFive = false, Admin = false, MovingAvg = true }; await EmailAPI.Send(MovingAvgEmail, ticker); }
public async void SendUpFiveEmail(string ticker) { Email UpFiveEmail = new Email { Subject = ticker + " Is Up 5%!", Content = "Good news! " + ticker + " went up five percent today! Go check it out at Market Watch.", From = "*****@*****.**", UpFive = true, DownFive = false, Admin = false, MovingAvg = false }; await EmailAPI.Send(UpFiveEmail, ticker); }
public async void SendDownFiveEmail(string ticker) { Email DownFiveEmail = new Email { Subject = "Your Stock Went Down :(", Content = "Sorry! " + ticker + " went down five percent today. Head over to Market Watch to check it out.", From = "*****@*****.**", UpFive = false, DownFive = true, Admin = false, MovingAvg = false }; await EmailAPI.Send(DownFiveEmail, ticker); }
public SendRecurringEmails(EmailAPI emailAPI, AnalyzeStocks Analyze) { EmailAPI = emailAPI; _analyzeStocks = Analyze; }