From 2c15d517fcad8958e9dab705fbc3acce0143c010 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 4 Apr 2019 09:41:29 +0300 Subject: [PATCH] more classes describing the /add API --- .../ktnx/mobileledger/json/ParsedPrice.java | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) 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; + } + } } -- 2.39.5