C# Class BudgetAnalyser.Engine.Budget.XamlOnDiskBudgetRepository

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

Public Methods

Method Description
CreateNew ( ) : BudgetCollection

Creates a new empty BudgetCollection but does not save it.

CreateNewAndSaveAsync ( string storageKey ) : Task
LoadAsync ( string storageKey, bool isEncrypted ) : Task
SaveAsync ( ) : System.Threading.Tasks.Task
SaveAsync ( string storageKey, bool isEncrypted ) : System.Threading.Tasks.Task
XamlOnDiskBudgetRepository ( [ bucketRepository, BudgetCollection>.[ mapper, [ readerWriterSelector ) : System

Initializes a new instance of the XamlOnDiskBudgetRepository class.

Protected Methods

Method Description
Deserialise ( string xaml ) : object
Serialise ( BudgetCollectionDto budgetData ) : string

Serialises the specified budget data.

Method Details

CreateNew() public method

Creates a new empty BudgetCollection but does not save it.
public CreateNew ( ) : BudgetCollection
return BudgetCollection

CreateNewAndSaveAsync() public method

public CreateNewAndSaveAsync ( string storageKey ) : Task
storageKey string
return Task

Deserialise() protected method

protected Deserialise ( string xaml ) : object
xaml string
return object

LoadAsync() public method

public LoadAsync ( string storageKey, bool isEncrypted ) : Task
storageKey string
isEncrypted bool
return Task

SaveAsync() public method

public SaveAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SaveAsync() public method

public SaveAsync ( string storageKey, bool isEncrypted ) : System.Threading.Tasks.Task
storageKey string
isEncrypted bool
return System.Threading.Tasks.Task

Serialise() protected method

Serialises the specified budget data.
protected Serialise ( BudgetCollectionDto budgetData ) : string
budgetData BudgetAnalyser.Engine.Budget.Data.BudgetCollectionDto
return string

XamlOnDiskBudgetRepository() public method

Initializes a new instance of the XamlOnDiskBudgetRepository class.
public XamlOnDiskBudgetRepository ( [ bucketRepository, BudgetCollection>.[ mapper, [ readerWriterSelector ) : System
bucketRepository [
mapper BudgetCollection>.[
readerWriterSelector [
return System