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:
parent
44fe2472c3
commit
0afff60345
3 changed files with 30 additions and 0 deletions
23
PolyFeed/ParserProviders/HtmlParserProvider.cs
Normal file
23
PolyFeed/ParserProviders/HtmlParserProvider.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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>
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in a new issue