GMSPlaceReview Class Reference

GMSPlaceReview Class Reference

Public Member Functions

(instancetype) - initWithPublishDate:relativePublishDateDescription:text:textLanguageCode:originalText:originalTextLanguageCode:rating:authorAttribution:
 Instantiates a GMSPlaceReview with detail properties.

Properties

NSDate * publishDate
 The NSDate the review was published.
NSString * relativePublishDateDescription
 A formatted string expressing the review date/time to the current time.
NSString * text
 The text of the review.
NSString * textLanguageCode
 The language code of the text of the review.
NSString * originalText
 The text of the review in its original language.
NSString * originalTextLanguageCode
 The language code of the original text of the review.
double rating
 A whole number between 1.0 and 5.0, a.k.a.
GMSPlaceAuthorAttributionauthorAttribution
 The attribution that must be shown to the user if this review is displayed.

Member Function Documentation

- (instancetype) initWithPublishDate: (NSDate *)  publishDate
relativePublishDateDescription: (nullable NSString *)  relativePublishDateDescription
text: (nullable NSString *)  text
textLanguageCode: (nullable NSString *)  textLanguageCode
originalText: (nullable NSString *)  originalText
originalTextLanguageCode: (nullable NSString *)  originalTextLanguageCode
rating: (float)  rating
authorAttribution: (nullable GMSPlaceAuthorAttribution *)  authorAttribution 

Instantiates a GMSPlaceReview with detail properties.

Parameters:
publishDateThe NSDate the review was published.
relativePublishDateDescriptionThe description of the publish date relative to the time of the request.
textThe localized text of the review.
textLanguageCodeThe language code of the localized review text.
originalTextThe review text in its original language.
originalTextLanguageCodeThe language code the review was originally written in.
ratingThe 0.0 - 5.0 rating associated with the review.
authorAttributionThe GMSPlaceAuthorAttribution of the review's author.

Property Documentation

- (NSDate*) publishDate [read, copy]

The NSDate the review was published.

- (NSString*) relativePublishDateDescription [read, copy]

A formatted string expressing the review date/time to the current time.

Specific to the language and country (e.g. "6 months ago").

- (NSString*) text [read, copy]

The text of the review.

- (NSString*) textLanguageCode [read, copy]

The language code of the text of the review.

- (NSString*) originalText [read, copy]

The text of the review in its original language.

- (NSString*) originalTextLanguageCode [read, copy]

The language code of the original text of the review.

- (double) rating [read, assign]

A whole number between 1.0 and 5.0, a.k.a.

the number of stars.

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

See Other Attribution Requirements for more details.