internal void Merge(TransactionEdits other) { foreach (var otherEdit in other) { AddEditClone(otherEdit); } }
public Transactions(string name) { this.Name = name; this.uniqueContentHashes = new Dictionary <string, string[]>(); this.topItemsById = new Dictionary <string, Transaction>(); this.allItemsById = new Dictionary <string, Transaction>(); this.accountInfos = new Dictionary <string, AccountInfo>(); this.importInfos = new Dictionary <string, ImportInfo>(); this.edits = new TransactionEdits(name); }
public TransactionEdits Clone() { var serializedData = this.SerializeToJson(); return(TransactionEdits.DeserializeFromJson(serializedData)); }
public IEnumerable <Transaction> Apply(TransactionEdits editsToApply, bool ignoreMissingIds = true) { return(editsToApply.SelectMany(edit => this.Apply(edit, ignoreMissingIds))); }