diff options
Diffstat (limited to 'branches/sca-java-1.x/samples/store-android/src/services/Item.java')
-rw-r--r-- | branches/sca-java-1.x/samples/store-android/src/services/Item.java | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/branches/sca-java-1.x/samples/store-android/src/services/Item.java b/branches/sca-java-1.x/samples/store-android/src/services/Item.java index 2b3e4a10c8..1881dd4d11 100644 --- a/branches/sca-java-1.x/samples/store-android/src/services/Item.java +++ b/branches/sca-java-1.x/samples/store-android/src/services/Item.java @@ -23,12 +23,42 @@ package services; public class Item { private String name; private String price; + private String key; - public Item() { + /** + * @return the key + */ + public String getKey() { + return key; + } + + /** + * @param key the key to set + */ + public void setKey(String key) { + this.key = key; + } + + + + + + + + + + public Item() { } - /** + + + + + + + + /** * Parses a string entry to an Item object * @param s * @return Item @@ -55,7 +85,14 @@ public class Item { this.name = name; } - public String getPrice() { + public Item(String name, String price, String key) { + super(); + this.name = name; + this.price = price; + this.key = key; + } + + public String getPrice() { return price; } |