From e29d802998ad287cd42e458d69e11db960132e7c Mon Sep 17 00:00:00 2001 From: DjBushido Date: Fri, 25 Apr 2014 22:55:17 -0400 Subject: [PATCH] Switch validation to use the new server API --- .../src/edu/uncc/scavenger/rest/LocationClient.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UNCCScavenger/src/edu/uncc/scavenger/rest/LocationClient.java b/UNCCScavenger/src/edu/uncc/scavenger/rest/LocationClient.java index 709b015..78a1e39 100644 --- a/UNCCScavenger/src/edu/uncc/scavenger/rest/LocationClient.java +++ b/UNCCScavenger/src/edu/uncc/scavenger/rest/LocationClient.java @@ -35,11 +35,11 @@ public class LocationClient { return ra.create(LocationService.class); } - public static String validateLocation(Context ctx, int id, String key) { + public static String validateLocation(Context ctx, String name, String key) { LocationService client = getAdapter(ctx); Map keys = new HashMap(); keys.put("key", key); - keys.put("id", String.valueOf(id)); + keys.put("name", name); try { return client.getResult(keys); @@ -75,7 +75,7 @@ public class LocationClient { @Override protected String doInBackground(String... params) { - return LocationClient.validateLocation(ctx, Integer.parseInt(params[0]), params[1]); + return LocationClient.validateLocation(ctx, params[0], params[1]); } } }