C# Class BudgetAnalyser.Engine.Statement.AnzAccountStatementImporterV1

Inheritance: IBankStatementImporter
Exibir arquivo Open project: Benrnz/BudgetAnalyser

Public Methods

Method Description
AnzAccountStatementImporterV1 ( [ importUtilities, [ logger, [ readerWriterSelector ) : System

Initializes a new instance of the AnzAccountStatementImporterV1 class.

LoadAsync ( string fileName, Account account ) : Task

Load the given file into a StatementModel.

TasteTestAsync ( string fileName ) : Task

Test the given file to see if this importer implementation can read and import it. This will open and read some of the contents of the file.

Protected Methods

Method Description
ReadLinesAsync ( string fileName ) : Task>

Reads the lines from the file asynchronously.

ReadTextChunkAsync ( string filePath ) : Task

Reads a chunk of text asynchronously.

Private Methods

Method Description
FetchTransactionType ( string array, decimal amount ) : TransactionType
ReadFirstTwoLinesAsync ( string fileName ) : Task
VerifyColumnHeaderLine ( string line ) : bool
VerifyFirstDataLine ( string line ) : bool

Method Details

AnzAccountStatementImporterV1() public method

Initializes a new instance of the AnzAccountStatementImporterV1 class.
///
public AnzAccountStatementImporterV1 ( [ importUtilities, [ logger, [ readerWriterSelector ) : System
importUtilities [
logger [
readerWriterSelector [
return System

LoadAsync() public method

Load the given file into a StatementModel.
public LoadAsync ( string fileName, Account account ) : Task
fileName string The file to load.
account BudgetAnalyser.Engine.BankAccount.Account /// The account to classify these transactions. This is useful when merging one statement to another. For example, /// merging a cheque account export with visa account export, each can be classified using an account. ///
return Task

ReadLinesAsync() protected method

Reads the lines from the file asynchronously.
protected ReadLinesAsync ( string fileName ) : Task>
fileName string
return Task>

ReadTextChunkAsync() protected method

Reads a chunk of text asynchronously.
protected ReadTextChunkAsync ( string filePath ) : Task
filePath string
return Task

TasteTestAsync() public method

Test the given file to see if this importer implementation can read and import it. This will open and read some of the contents of the file.
public TasteTestAsync ( string fileName ) : Task
fileName string
return Task