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

io.sphere.sdk.reviews.search.ReviewRatingStatisticsSortSearchModel Maven / Gradle / Ivy

package io.sphere.sdk.reviews.search;

import io.sphere.sdk.search.model.*;

import javax.annotation.Nullable;

public class ReviewRatingStatisticsSortSearchModel extends SortableSearchModel> {
    public ReviewRatingStatisticsSortSearchModel(@Nullable final SearchModel parent, @Nullable final String pathSegment) {
        super(parent, pathSegment, SingleValueSortSearchModelFactory.of());
    }

    public SingleValueSortSearchModel averageRating() {
        return searchModel(this, "averageRating").sorted();
    }

    public SingleValueSortSearchModel highestRating() {
        return searchModel(this, "highestRating").sorted();
    }

    public SingleValueSortSearchModel lowestRating() {
        return searchModel(this, "lowestRating").sorted();
    }

    public SingleValueSortSearchModel count() {
        return searchModel(this, "count").sorted();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy