HERE Android SDK Developer's Guide

RatingMedia

The class RatingMedia is a member of com.here.android.mpa.search .

Class Summary

public class RatingMedia

extends com.here.android.mpa.search.Media, java.lang.Object

Represents rating content about a Place.

[For complete information, see the section Class Details]

See also:

getRatings()

Method Summary

Table 1. Methods in RatingMedia
Methods

public boolean equals (Object obj)

For documentation, see java.lang.Object

public double getAverage ()

Gets the average rating for the Place.

public int getCount ()

Gets the count of individual contributions that users provided for rating the Place.

public int hashCode ()

For documentation, see java.lang.Object

Class Details

Represents rating content about a Place. Each individual Rating contains information about the rating itself, the user who contributed the rating, and a rating that the user offered for the place.

See also:

getRatings()

Method Details

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public double getAverage ()

Gets the average rating for the Place.

Returns:

The average rating

public int getCount ()

Gets the count of individual contributions that users provided for rating the Place.

Returns:

The total ratings count

public int hashCode ()

For documentation, see java.lang.Object