C# Class BudgetAnalyser.Engine.Statement.AnzAccountStatementImporterV1

Inheritance: IBankStatementImporter
Afficher le fichier Open project: Benrnz/BudgetAnalyser

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
ReadLinesAsync ( string fileName ) : Task>

Reads the lines from the file asynchronously.

ReadTextChunkAsync ( string filePath ) : Task

Reads a chunk of text asynchronously.

Private Methods

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

Method Details

AnzAccountStatementImporterV1() public méthode

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

LoadAsync() public méthode

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. ///
Résultat Task

ReadLinesAsync() protected méthode

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

ReadTextChunkAsync() protected méthode

Reads a chunk of text asynchronously.
protected ReadTextChunkAsync ( string filePath ) : Task
filePath string
Résultat Task

TasteTestAsync() public méthode

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
Résultat Task