Skip to content
Snippets Groups Projects
Commit 142c1520 authored by John Watkins's avatar John Watkins
Browse files

return data now includes bool to determine if there is another page for this query

parent d1b40f90
No related branches found
No related tags found
3 merge requests!114LoggingService service class, new method to add a log to the "Logs" table when...,!106Branch Update,!105Issue thirty
...@@ -113,8 +113,12 @@ public class ShopSearch { ...@@ -113,8 +113,12 @@ public class ShopSearch {
formattedShops.add(data); formattedShops.add(data);
} }
Map<String,Object> returnMap = new HashMap<>();
returnMap.put("shops",formattedShops);
returnMap.put("hasNextPage", hasNextPage);
Gson gson = new Gson(); Gson gson = new Gson();
String json = gson.toJson(formattedShops); String json = gson.toJson(returnMap);
return json; return json;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment