}
onCompletion.callback(syncResponse);
}
};
@SuppressWarnings("rawtypes")
ErrorCallback errorCallback = new ErrorCallback() {
@SuppressWarnings("unchecked")
@Override
public boolean error(Object message, Throwable throwable) {
syncInProgress = false;
ErrorCallback rawOnError = onError == null ? DEFAULT_ERROR_CALLBACK : onError;
return rawOnError.error(message, throwable);
}
};
dataSyncService.call(onSuccess, errorCallback).coldSync(syncSet, syncRequests);
}