function listLocalDatasetClientData(datasetClient, cb) {
  syncStorage.readDatasetClientWithRecords(datasetClient.getId(), function(err, datasetClientsWithRecords) {
    if (err) {
      return cb(err);
    }
    //no one sync loop has completed yet, return null
    if (!datasetClientsWithRecords || !datasetClientsWithRecords.syncCompleted) {
      return cb(null, null);
    } else {
      return cb(null, datasetClientsWithRecords);
    }
  });
}
function listLocalDatasetClientData(datasetClient, cb) {
  syncStorage.readDatasetClientWithRecords(datasetClient.getId(), function(err, datasetClientsWithRecords) {
    if (err) {
      return cb(err);
    }
    
    if (!datasetClientsWithRecords || !datasetClientsWithRecords.syncCompleted) {
      return cb(null, null);
    } else {
      return cb(null, datasetClientsWithRecords);
    }
  });
}
function listLocalDatasetClientData ( datasetClient , cb ) { syncStorage . readDatasetClientWithRecords ( datasetClient . getId ( ) , function ( err , datasetClientsWithRecords ) { if ( err ) { return cb ( err ) ; } //no one sync loop has completed yet, return null if ( ! datasetClientsWithRecords || ! datasetClientsWithRecords . syncCompleted ) { return cb ( null , null ) ; } else { return cb ( null , datasetClientsWithRecords ) ; } } ) ; }
List the records for the given datasetClient
@param {DatasetClient} datasetClient
@param {Function} cb
List the records for the given datasetClient