From c6e30d0023bfafec6a607ebd0f56d820384914bc Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Fri, 23 Dec 2016 20:13:55 -0500 Subject: [PATCH] Adding setters and getters --- .../de/bitsharesmunich/graphenej/Asset.java | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/bitsharesmunich/graphenej/Asset.java b/src/main/java/de/bitsharesmunich/graphenej/Asset.java index 749c965..accc93d 100644 --- a/src/main/java/de/bitsharesmunich/graphenej/Asset.java +++ b/src/main/java/de/bitsharesmunich/graphenej/Asset.java @@ -14,10 +14,10 @@ public class Asset extends GrapheneObject { public static final String KEY_ISSUER = "issuer"; public static final String KEY_DYNAMIC_ASSET_DATA_ID = "dynamic_asset_data_id"; - private String id; private String symbol; private int precision; private String issuer; + private String description; private String dynamic_asset_data_id; private AssetOptions options; @@ -27,7 +27,6 @@ public class Asset extends GrapheneObject { */ public Asset(String id) { super(id); - this.id = id; } /** @@ -60,6 +59,14 @@ public class Asset extends GrapheneObject { return this.symbol; } + public void setSymbol(String symbol){ + this.symbol = symbol; + } + + public void setPrecision(int precision){ + this.precision = precision; + } + public int getPrecision(){ return this.precision; } @@ -68,6 +75,14 @@ public class Asset extends GrapheneObject { public String getIssuer() { return this.issuer; } + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + /** * Custom deserializer used to instantiate a simple version of the Asset class from the response of the * 'lookup_asset_symbols' API call.