C# Class BudgetAnalyser.Engine.Statement.BankStatementImporterRepository

Inheritance: IBankStatementImporterRepository
Show file Open project: Benrnz/BudgetAnalyser Class Usage Examples

Public Methods

Method Description
BankStatementImporterRepository ( [ importers ) : System

Initializes a new instance of the BankStatementImporterRepository class.

CanImportAsync ( string fullFileName ) : Task

Can any importer in this repository read and import the given file. Calling this method will open the file and read some of its contents.

ImportAsync ( string fullFileName, Account account ) : Task

Import the given file. It is recommended to call IBankStatementImporterRepository.CanImportAsync first. If the file cannot be imported by any of this repositories importers a NotSupportedException will be thrown.

Method Details

BankStatementImporterRepository() public method

Initializes a new instance of the BankStatementImporterRepository class.
public BankStatementImporterRepository ( [ importers ) : System
importers [ The importers.
return System

CanImportAsync() public method

Can any importer in this repository read and import the given file. Calling this method will open the file and read some of its contents.
public CanImportAsync ( string fullFileName ) : Task
fullFileName string
return Task

ImportAsync() public method

Import the given file. It is recommended to call IBankStatementImporterRepository.CanImportAsync first. If the file cannot be imported by any of this repositories importers a NotSupportedException will be thrown.
public ImportAsync ( string fullFileName, Account account ) : Task
fullFileName string
account BudgetAnalyser.Engine.BankAccount.Account
return Task