diff --git a/Melody49Notifier/DataAbstraction/TheaterScheduleHTMLParser.cs b/Melody49Notifier/DataAbstraction/TheaterScheduleHTMLParser.cs new file mode 100644 index 0000000..acdd4a6 --- /dev/null +++ b/Melody49Notifier/DataAbstraction/TheaterScheduleHTMLParser.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Melody49Notifier.Models; +using Microsoft.Azure.WebJobs.Host; + +namespace Melody49Notifier.DataAbstraction +{ + public class TheaterScheduleHTMLParser : ITheaterScheduleHTMLParser + { + private readonly TraceWriter log; + + public TheaterScheduleHTMLParser(TraceWriter log) + { + this.log = log; + } + + public TheaterSchedule ParseTheaterScheduleHTML(string html) + { + throw new NotImplementedException(); + } + } +} diff --git a/Melody49Notifier/Melody49Notifier.cs b/Melody49Notifier/Melody49Notifier.cs index fe5251f..5299bfc 100644 --- a/Melody49Notifier/Melody49Notifier.cs +++ b/Melody49Notifier/Melody49Notifier.cs @@ -25,7 +25,7 @@ public static void Run([TimerTrigger("0/10 * * * * *")]TimerInfo myTimer, TraceW private static bool TheaterScheduleHasUpdated(TraceWriter log, out TheaterSchedule currentTheaterSchedule) { ICurrentTheaterScheduleDataFileManager currentTheaterScheduleDataFileManager = new CurrentTheaterScheduleDataFileManager(log); - ICurrentTheaterScheduleWebRequestManager currentTheaterScheduleWebRequestManager = null; + ICurrentTheaterScheduleWebRequestManager currentTheaterScheduleWebRequestManager = new CurrentTheaterScheduleWebRequestManager(log, new TheaterScheduleHTMLParser(log)); ITheaterScheduleComparer theaterScheduleComparer = null; TheaterSchedule currentTheaterScheduleFromFile = currentTheaterScheduleDataFileManager.SelectCurrentTheaterSchedule();