Overview
This class represents a single place review.
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. | |
GMSPlaceAuthorAttribution * | authorAttribution |
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:
-
publishDate The NSDate
the review was published.relativePublishDateDescription The description of the publish date relative to the time of the request. text The localized text of the review. textLanguageCode The language code of the localized review text. originalText The review text in its original language. originalTextLanguageCode The language code the review was originally written in. rating The 0.0 - 5.0 rating associated with the review. authorAttribution The 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.
- (GMSPlaceAuthorAttribution*) authorAttribution [read, assign] |
The attribution that must be shown to the user if this review is displayed.
See Other Attribution Requirements for more details.