Review

public abstract class Review implements Parcelable


Information about a review of the place.

Summary

Nested types

public abstract class Review.Builder

Builder for Review.

Public constructors

Public methods

static Review.Builder
builder(Double rating, AuthorAttribution authorAttribution)

Returns a Review.Builder.

abstract String

Returns the attribution that must be shown to the user if this review is displayed.

abstract AuthorAttribution

Returns this review's AuthorAttribution.

abstract @Nullable String

Returns the text of the review in its original language.

abstract @Nullable String

Returns the language code of the original text of the review.

abstract @Nullable String

Returns the publish time for the review, expressed in "yyyy-MM-dd HH:mm:ss" format of UTC timezone.

abstract Double

Returns a whole number between 1.0 and 5.0 (inclusive), meaning the number of stars.

abstract @Nullable String

Returns a human-readable description of the relative publish time of a review, such as "a month ago", or "in the last week", based on the time elapsed.

abstract @Nullable String

Returns the text of the review.

abstract @Nullable String

Returns the language code of the text of the review.

Inherited Constants

From android.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int
int
abstract void
writeToParcel(Parcel p, int p1)

Public constructors

Review

public Review()

Public methods

builder

public static Review.Builder builder(Double rating, AuthorAttribution authorAttribution)

Returns a Review.Builder.

getAttribution

public abstract String getAttribution()

Returns the attribution that must be shown to the user if this review is displayed.

See Other Attribution Requirements for more details.

Returns
String

The attribution in HTML format.

getAuthorAttribution

public abstract AuthorAttribution getAuthorAttribution()

Returns this review's AuthorAttribution.

getOriginalText

public abstract @Nullable String getOriginalText()

Returns the text of the review in its original language.

getOriginalTextLanguageCode

public abstract @Nullable String getOriginalTextLanguageCode()

Returns the language code of the original text of the review.

getPublishTime

public abstract @Nullable String getPublishTime()

Returns the publish time for the review, expressed in "yyyy-MM-dd HH:mm:ss" format of UTC timezone.

getRating

public abstract Double getRating()

Returns a whole number between 1.0 and 5.0 (inclusive), meaning the number of stars.

getRelativePublishTimeDescription

public abstract @Nullable String getRelativePublishTimeDescription()

Returns a human-readable description of the relative publish time of a review, such as "a month ago", or "in the last week", based on the time elapsed.

getText

public abstract @Nullable String getText()

Returns the text of the review.

getTextLanguageCode

public abstract @Nullable String getTextLanguageCode()

Returns the language code of the text of the review.