use of com.amplifyframework.core.model.query.predicate.QueryPredicate in project amplify-android by aws-amplify.
the class SyncStatus method getLastSyncMetaData.
private LastSyncMetadata getLastSyncMetaData(@NonNull String modelClassName, @NonNull Consumer<DataStoreException> onObservationError) throws DataStoreException {
QueryPredicate hasMatchingModelClassName = QueryField.field("modelClassName").eq(modelClassName);
List<LastSyncMetadata> syncedList = sqlQueryProcessor.queryOfflineData(LastSyncMetadata.class, Where.matches(hasMatchingModelClassName), onObservationError);
return extractSingleResult(modelClassName, syncedList);
}
Aggregations