diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-02 06:58:36 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-02 06:58:36 +0000 |
commit | 93af1c6a6cc481b6204cd4d12e3d99ed7d419130 (patch) | |
tree | f4df00941ceca898cd048607383faac9457675b1 /sandbox/travelsample/scatours-android-ui/src/scatours/SCAToursSearchProxy.java | |
parent | 27dec0710cc7da2d2eda9b49178ca1334fc756d5 (diff) |
Adding new activity to display results
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@780958 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/scatours-android-ui/src/scatours/SCAToursSearchProxy.java')
-rw-r--r-- | sandbox/travelsample/scatours-android-ui/src/scatours/SCAToursSearchProxy.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sandbox/travelsample/scatours-android-ui/src/scatours/SCAToursSearchProxy.java b/sandbox/travelsample/scatours-android-ui/src/scatours/SCAToursSearchProxy.java index d43d5f7029..cfd6b98bcf 100644 --- a/sandbox/travelsample/scatours-android-ui/src/scatours/SCAToursSearchProxy.java +++ b/sandbox/travelsample/scatours-android-ui/src/scatours/SCAToursSearchProxy.java @@ -55,12 +55,13 @@ public class SCAToursSearchProxy implements SCAToursSearch { for(int i = 0; i < result.length(); i++) { TripItem item = new TripItem(); + item.setType(result.getJSONObject(i).getString("type")); item.setName(result.getJSONObject(i).getString("name")); item.setDescription(result.getJSONObject(i).getString("description")); item.setLocation(result.getJSONObject(i).getString("location")); item.setFromDate(result.getJSONObject(i).getString("fromDate")); item.setToDate(result.getJSONObject(i).getString("toDate")); - item.setPrice(result.getJSONObject(i).getLong("price")); + item.setPrice(result.getJSONObject(i).getDouble("price")); item.setCurrency(result.getJSONObject(i).getString("currency")); tripCatalog.add(item); |