Class BusinessRating2xObjectMetadata

com.yandex.mapkit.search

java.lang.Object ⇽ BusinessRating2xObjectMetadata

public class BusinessRating2xObjectMetadata

Snippet for business ratings.

Score from 0 to 10.

Constructors

BusinessRating2xObjectMetadata()

Use constructor with parameters in your code.

BusinessRating2xObjectMetadata(int ratings, int reviews, @Nullable Float score)

Methods

String getNativeName()
synchronized int getRatings()

Total number of ratings.

synchronized int getReviews()

Total number of reviews.

synchronized Float getScore()

Average rating score for the business (0 to 10).

void serialize(Archive archive)

Constructor Detail

BusinessRating2xObjectMetadata

public BusinessRating2xObjectMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

BusinessRating2xObjectMetadata

public BusinessRating2xObjectMetadata (int ratings, int reviews, @Nullable Float score)

Method Detail

getNativeName

public static String getNativeName ()

getRatings

public synchronized int getRatings ()

Total number of ratings.

getReviews

public synchronized int getReviews ()

Total number of reviews.

getScore

public synchronized Float getScore ()

Average rating score for the business (0 to 10).

Optional field, can be null.

serialize

public void serialize (Archive archive)