Interface IScraper
public interface IScraper
Properties
AllProductInfos
Provides a list of all account products supported by this screen-scraper.
ScraperProductInfo[] AllProductInfos { get; }
Property Value
ClassName
A name that uniquely identifies a scraper implementation. This is usually the actual class name of the implementation sans the Scraper prefix.
string ClassName { get; }
Property Value
Name
User friendly name of this account service scraper.
string Name { get; }
Property Value
Priority
Selects the priority of this scraper as compared to other scrapers. Scrapers with a lower Priority value are tried before scrapers with a higher a higher Priority value.
int Priority { get; }
Property Value
Methods
CanScrape(JsonObject)
Checks whether this scraper can scrape the given account.
bool CanScrape(JsonObject jsAcct)
Parameters
jsAcctJsonObjectAccount identification.
Returns
CreateContact(JsonObject)
Create a new scraper contact object from an account.
IScraperContact CreateContact(JsonObject jsAcct)
Parameters
jsAcctJsonObjectAccount details of an account that can be scraped by this scraper, i.e. the method CanScrape(JsonObject) returns true for it.
Returns
- IScraperContact
If the given account cannot be scraped by this scraper, then
nullis returned. If the account can be scraped, then a new IScraperContact implementing instance is created, initialized with data from the account and returned.
GetProductInfo(JsonObject)
If the scraper can scrape the given account, then this returns inforomation about the account product.
ScraperProductInfo GetProductInfo(JsonObject jsAcct)
Parameters
jsAcctJsonObject
Returns
- ScraperProductInfo
If this scraper cannot scrape the given account, then this returns
null. Otherwise a ScraperProductInfo instance with account product details is provided.