1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-11-21 06:22:59 +00:00

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" />