Class BusinessRating1xObjectMetadata

com.yandex.mapkit.search

java.lang.Object ⇽ BusinessRating1xObjectMetadata

public class BusinessRating1xObjectMetadata

Snippet for company ratings.

Score from 0 to 5.

Constructors

BusinessRating1xObjectMetadata()

Use constructor with parameters in your code.

BusinessRating1xObjectMetadata(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 company (0 to 5).

void serialize(Archive archive)

Constructor Detail

BusinessRating1xObjectMetadata

public BusinessRating1xObjectMetadata ()

Use constructor with parameters in your code.

This one is for serialization only!

BusinessRating1xObjectMetadata

public BusinessRating1xObjectMetadata (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 company (0 to 5).

Optional field, can be null.

serialize

public void serialize (Archive archive)