From: Damyan Ivanov Date: Thu, 4 Apr 2019 06:41:29 +0000 (+0300) Subject: more classes describing the /add API X-Git-Tag: v0.9~15 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=2c15d517fcad8958e9dab705fbc3acce0143c010;p=mobile-ledger.git more classes describing the /add API --- diff --git a/app/src/main/java/net/ktnx/mobileledger/json/ParsedPrice.java b/app/src/main/java/net/ktnx/mobileledger/json/ParsedPrice.java index 3ff6bde8..fe152565 100644 --- a/app/src/main/java/net/ktnx/mobileledger/json/ParsedPrice.java +++ b/app/src/main/java/net/ktnx/mobileledger/json/ParsedPrice.java @@ -19,13 +19,59 @@ package net.ktnx.mobileledger.json; class ParsedPrice { private String tag; + private Contents contents; public ParsedPrice() { tag = "NoPrice"; } + public Contents getContents() { + return contents; + } + public void setContents(Contents contents) { + this.contents = contents; + } public String getTag() { return tag; } public void setTag(String tag) { this.tag = tag; } + private class Contents { + private ParsedPrice aprice; + private ParsedQuantity aquantity; + private String acommodity; + private boolean aismultiplier; + private ParsedStyle astyle; + public Contents() { + } + public ParsedPrice getAprice() { + return aprice; + } + public void setAprice(ParsedPrice aprice) { + this.aprice = aprice; + } + public ParsedQuantity getAquantity() { + return aquantity; + } + public void setAquantity(ParsedQuantity aquantity) { + this.aquantity = aquantity; + } + public String getAcommodity() { + return acommodity; + } + public void setAcommodity(String acommodity) { + this.acommodity = acommodity; + } + public boolean isAismultiplier() { + return aismultiplier; + } + public void setAismultiplier(boolean aismultiplier) { + this.aismultiplier = aismultiplier; + } + public ParsedStyle getAstyle() { + return astyle; + } + public void setAstyle(ParsedStyle astyle) { + this.astyle = astyle; + } + } }