return new MeasurementCollectionImpl(restConnector, url, pageSize);
}
private PagedCollectionResource getMeasurementsByDateAndFragmentType(Date dateFrom, Date dateTo,
Class fragmentType) throws SDKException {
Map filter = new HashMap();
filter.put(DATE_FROM, DateUtils.format(dateFrom));
filter.put(DATE_TO, DateUtils.format(dateTo));
filter.put(FRAGMENT_TYPE, ExtensibilityConverter.classToStringRepresentation(fragmentType));
String urlTemplate = getMeasurementApiRepresentation().getMeasurementsForDateAndFragmentType();
String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
return new MeasurementCollectionImpl(restConnector, url, pageSize);
}