Example #1
0
 internal void Merge(TransactionEdits other)
 {
     foreach (var otherEdit in other)
     {
         AddEditClone(otherEdit);
     }
 }
Example #2
0
        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);
        }
Example #3
0
        public TransactionEdits Clone()
        {
            var serializedData = this.SerializeToJson();

            return(TransactionEdits.DeserializeFromJson(serializedData));
        }
Example #4
0
 public IEnumerable <Transaction> Apply(TransactionEdits editsToApply, bool ignoreMissingIds = true)
 {
     return(editsToApply.SelectMany(edit => this.Apply(edit, ignoreMissingIds)));
 }