• API Overview
  • EBICS API
  • FinTS API
  • XS2A API
  • SEPA API

    Class Scraper

    Convenient base implementation with method stubs for IScraper.

    Inheritance
    System.Object
    Scraper
    ScraperFinTS
    ScraperAdvanzia
    ScraperAmEx
    ScraperAudiBank
    ScraperBankOfScotland
    ScraperBarclays
    ScraperBunq
    ScraperBWBank
    ScraperCobaBusinessCard
    ScraperCommerzbank
    ScraperDKB
    ScraperDummy
    ScraperFirstData
    ScraperHanseaticBank
    ScraperKontist
    ScraperMilesMore
    ScraperN26
    ScraperNewLbbCreditCard
    ScraperPostbank
    ScraperVWBank
    Implements
    IScraper
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Subsembly.Scraper
    Assembly: Subsembly.Scraper.dll
    Syntax
    public abstract class Scraper : IScraper

    Constructors

    Scraper(String, ScraperCreditCardInfos)

    Declaration
    public Scraper(string sScraperName, ScraperCreditCardInfos vCardInfos)
    Parameters
    Type Name Description
    System.String sScraperName

    Display name of this screaper implementation. Must not be null or empty.

    ScraperCreditCardInfos vCardInfos

    Scraper(String, String, String, Int32)

    Declaration
    public Scraper(string sScraperName, string sProductName, string sIconName, int nPriority = 100)
    Parameters
    Type Name Description
    System.String sScraperName

    Display name of this screaper implementation. Must not be null or empty.

    System.String sProductName

    Optional product name for the default implementation of GetProductInfo(JsonObject). If this is not provided, then the derived class must override OnGetProductInfo(SepaAccount)

    System.String sIconName

    Optional icon name for the default implementation of GetProductInfo(JsonObject).

    System.Int32 nPriority

    Fields

    SCRAPERPRIORITY_HIGH

    High priority.

    Declaration
    public const int SCRAPERPRIORITY_HIGH = 1000
    Field Value
    Type Description
    System.Int32

    SCRAPERPRIORITY_LOW

    Low priority.

    Declaration
    public const int SCRAPERPRIORITY_LOW = 10
    Field Value
    Type Description
    System.Int32

    SCRAPERPRIORITY_NORMAL

    The default priority for all scrapers.

    Declaration
    public const int SCRAPERPRIORITY_NORMAL = 100
    Field Value
    Type Description
    System.Int32

    Properties

    ClassName

    Returns the name of the class, as it was given to the constructor.

    Declaration
    public string ClassName { get; }
    Property Value
    Type Description
    System.String

    Name

    Returns the name that was given to the constructor.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    Priority

    Returns the priority value that was given to the constructor.

    Declaration
    public int Priority { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    CanScrape(JsonObject)

    Declaration
    public bool CanScrape(JsonObject jsAcct)
    Parameters
    Type Name Description
    JsonObject jsAcct
    Returns
    Type Description
    System.Boolean

    CreateContact(JsonObject)

    Declaration
    public IScraperContact CreateContact(JsonObject jsAcct)
    Parameters
    Type Name Description
    JsonObject jsAcct
    Returns
    Type Description
    IScraperContact

    GetProductInfo(JsonObject)

    Declaration
    public ScraperProductInfo GetProductInfo(JsonObject jsAcct)
    Parameters
    Type Name Description
    JsonObject jsAcct
    Returns
    Type Description
    ScraperProductInfo

    OnCanScrape(SepaAccount)

    Declaration
    public virtual bool OnCanScrape(SepaAccount aAcct)
    Parameters
    Type Name Description
    SepaAccount aAcct
    Returns
    Type Description
    System.Boolean

    OnCreateScraperContact(SepaAccount)

    No default implementation. Must be provided by the derived class.

    Declaration
    public abstract IScraperContact OnCreateScraperContact(SepaAccount aAcct)
    Parameters
    Type Name Description
    SepaAccount aAcct
    Returns
    Type Description
    IScraperContact

    OnGetProductInfo(SepaAccount)

    Override this, if you support different account products with different product infos. The default implementation returns a new ScraperProductInfo with the details given to the constructor.

    Declaration
    public virtual ScraperProductInfo OnGetProductInfo(SepaAccount aAcct)
    Parameters
    Type Name Description
    SepaAccount aAcct
    Returns
    Type Description
    ScraperProductInfo

    Implements

    IScraper
    Back to top Copyright 2009-2022 Subsembly GmbH