All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.internal.request.ProductQueryRequest Maven / Gradle / Ivy

There is a newer version: 0.72.1
Show newest version
package io.sphere.internal.request;

import io.sphere.client.QueryRequest;
import io.sphere.client.model.products.BackendProductProjection;
import io.sphere.client.shop.CategoryTree;
import io.sphere.client.shop.model.Product;
import io.sphere.internal.ProductConversion;

public class ProductQueryRequest extends QueryRequestMapping {
    private final CategoryTree categoryTree;

    protected ProductQueryRequest(QueryRequest delegate, CategoryTree categoryTree) {
        super(delegate);
        this.categoryTree = categoryTree;
    }

    @Override
    protected Product convert(BackendProductProjection backendProduct) {
        return ProductConversion.fromBackendProductProjection(backendProduct, categoryTree);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy