public List<String> getIdsToDownload() throws IOException, JSONException, HttpException { // Default value is currently epoch long lastUpdateMillis = context.getSharedPreferences().getLong(RapidFtrApplication.LAST_CHILD_SYNC, 0); DateTime lastUpdate = new DateTime(lastUpdateMillis); return childEntityHttpDao.getUpdatedResourceUrls(lastUpdate); }
@Override public Child getRecord(String resourceUrl) throws IOException, JSONException, HttpException { Child child = childEntityHttpDao.get(resourceUrl); GenericSyncService.setAttributes(child); return child; }