Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Created TheaterScheduleHTMLParser and Instantiated it in the Melody49…
Browse files Browse the repository at this point in the history
…Notifier.
  • Loading branch information
bofirial committed Jun 10, 2017
1 parent 531236a commit 40122a1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions Melody49Notifier/DataAbstraction/TheaterScheduleHTMLParser.cs
Original file line number Diff line number Diff line change
@@ -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();
}
}
}
2 changes: 1 addition & 1 deletion Melody49Notifier/Melody49Notifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 40122a1

Please sign in to comment.