]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerAccount.java
a step towards API-independent JSON parsing of accounts
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / json / ParsedLedgerAccount.java
index d155c2bb24bb2ef1fec22d4d40d6fd8adb19accc..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 List<ParsedBalance> aibalance;
     private String aname;
-    public ParsedLedgerAccount() {
+    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 List<ParsedBalance> getAebalance() {
-        return aebalance;
+    public void setAnumpostings(int anumpostings) {
+        this.anumpostings = anumpostings;
     }
     public List<ParsedBalance> getAibalance() {
         return aibalance;
     }
-    public void setAebalance(List<ParsedBalance> aebalance) {
-        this.aebalance = aebalance;
-    }
     public void setAibalance(List<ParsedBalance> aibalance) {
         this.aibalance = aibalance;
     }
-    public String getAname() {
-        return aname;
-    }
-    public void setAname(String aname) {
-        this.aname = aname;
-    }
-
 }