Start refactoring the html provider into it's own class, but it's not finished yet.

This commit is contained in:
Starbeamrainbowlabs 2019-08-10 18:56:48 +01:00
parent 44fe2472c3
commit 0afff60345
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,23 @@
using System;
using System.Net;
using Microsoft.SyndicationFeed.Atom;
namespace PolyFeed.ParserProviders
{
public class HtmlParserProvider : IParserProvider
{
public HtmlParserProvider()
{
}
public void ParseWebResponse(FeedSource source, WebResponse response)
{
throw new NotImplementedException();
}
public void SetOutputFeed(AtomFeedWriter feed)
{
throw new NotImplementedException();
}
}
}

View File

@ -11,6 +11,12 @@ namespace PolyFeed.ParserProviders
/// </summary>
public interface IParserProvider
{
/// <summary>
/// The identifier of this provider.
/// Used in the .toml configuration file to specify which parser to use.
/// </summary>
string Identifier { get; }
/// <summary>
/// Sets the output feed that parsed output should be written to.
/// </summary>

View File

@ -153,6 +153,7 @@
<Compile Include="Helpers\UserAgentHelper.cs" />
<Compile Include="Helpers\ReflectionHelpers.cs" />
<Compile Include="ParserProviders\IParserProvider.cs" />
<Compile Include="ParserProviders\HtmlParserProvider.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />