]> git.ktnx.net Git - mobile-ledger-staging.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerAccount.java
a step towards API-independent JSON parsing of accounts
[mobile-ledger-staging.git] / app / src / main / java / net / ktnx / mobileledger / json / ParsedLedgerAccount.java
index dd19e27d2220b28dfa29967b5428d2618d997ed4..aff5775358d7e393cb82fea7116e844150ecab01 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2019 Damyan Ivanov.
+ * Copyright © 2020 Damyan Ivanov.
  * This file is part of MoLe.
  * MoLe is free software: you can distribute it and/or modify it
  * under the term of the GNU General Public License as published by
 
 package net.ktnx.mobileledger.json;
 
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import net.ktnx.mobileledger.json.ParsedBalance;
 
 import java.util.List;
 
-@JsonIgnoreProperties(ignoreUnknown = true)
 public class ParsedLedgerAccount {
-    private List<ParsedBalance> aebalance;
     private String aname;
-    public ParsedLedgerAccount() {
-    }
-    public List<ParsedBalance> getAebalance() {
-        return aebalance;
-    }
-    public void setAebalance(List<ParsedBalance> aebalance) {
-        this.aebalance = aebalance;
-    }
+    private int anumpostings;
+    private List<ParsedBalance> aibalance;
     public String getAname() {
         return aname;
     }
     public void setAname(String aname) {
         this.aname = aname;
     }
-
+    public int getAnumpostings() {
+        return anumpostings;
+    }
+    public void setAnumpostings(int anumpostings) {
+        this.anumpostings = anumpostings;
+    }
+    public List<ParsedBalance> getAibalance() {
+        return aibalance;
+    }
+    public void setAibalance(List<ParsedBalance> aibalance) {
+        this.aibalance = aibalance;
+    }
 }