GMSPlaceReview 類別參考

GMSPlaceReview 類別參考

總覽

這個類別代表單一地點評論。

公開成員函式

(instancetype)- initWithPublishDate:relativePublishDateDescription:text:textLanguageCode:originalText:originalTextLanguageCode:rating:authorAttribution:
 使用詳細資料屬性將 GMSPlaceReview 例項化。

房源

NSDate *publishDate
 評論已發布的NSDate
NSString *relativePublishDateDescription
 經過格式化的字串,表示評論日期/時間到目前時間。
NSString *文字
 評論的內容。
NSString *textLanguageCode
 評論文字的語言代碼。
NSString *originalText
 評論文字原文。
NSString *originalTextLanguageCode
 評論原文的語言代碼。
雙精準數評分
 介於 1.0 到 5.0 (即
) 之間的整數。
GMSPlaceAuthorAttribution *authorAttribution
 當網頁顯示這則評論時,必須向使用者顯示的出處。

成員職能說明文件

- (instancetype) initWithPublishDate: (NSDate *) publishDate
relPublishDateDescription: (可為空值的 NSString *) relativePublishDateDescription
文字: (可為空值的 NSString *) 文字
textLanguageCode: (可為空值的 NSString *) textLanguageCode
originalText: (可為空值的 NSString *) originalText
originalTextLanguageCode: (可為空值的 NSString *) originalTextLanguageCode
rating: (浮點值) 評分
作者出處: (可為空值GMSPlaceAuthorAttribution *) authorAttribution

使用詳細資料屬性將 GMSPlaceReview 例項化。

參數:
publishDate評論已發布的NSDate
relativePublishDateDescription發布日期與要求時間的相對說明。
文字評論的本地化文字。
textLanguageCode本地化評論文字的語言代碼。
originalText評論文字的原始語言。
originalTextLanguageCode評論撰寫時使用的語言代碼。
rating該評論的相關評分 0.0 - 5.0。
authorAttribution評論作者的 GMSPlaceAuthorAttribution

屬性說明文件

- (NSDate*) publishDate [read, copy]

評論已發布的NSDate

- (NSString*) relativePublishDateDescription [read, copy]

經過格式化的字串,表示評論日期/時間到目前時間。

依語言和國家/地區提供 (例如「6 個月前」)。

- (NSString*) 文字 [read, copy]

評論的內容。

- (NSString*) <textLanguageCode> [read, copy]textLanguageCode

評論文字的語言代碼。

- (NSString*) originalText [read, copy]

評論文字的原始語言。

- (NSString*) <原始文字語言>originalTextLanguageCode [read, copy]

評論原文的語言代碼。

- (雙倍) rating [read, assign]

介於 1.0 到 5.0 (即 .k.a) 之間的整數,

星星的數量。

當網頁顯示這則評論時,必須向使用者顯示的出處。

詳情請參閱其他註明出處相關規定