use of com.google.firebase.firestore.core.Query.LimitType in project firebase-android-sdk by firebase.
the class LocalSerializer method decodeBundledQuery.
public BundledQuery decodeBundledQuery(com.google.firestore.bundle.BundledQuery bundledQuery) {
LimitType limitType = bundledQuery.getLimitType().equals(com.google.firestore.bundle.BundledQuery.LimitType.FIRST) ? LimitType.LIMIT_TO_FIRST : LimitType.LIMIT_TO_LAST;
Target target = rpcSerializer.decodeQueryTarget(bundledQuery.getParent(), bundledQuery.getStructuredQuery());
return new BundledQuery(target, limitType);
}
Aggregations