mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 06:33:42 +00:00
[ios] Extract PlacePagePhone class
It groups two phone-related properties, `phone` and `phoneUrl` (renamed to `url`), that used to be in `PlacePageInfoData`. This will make it easier to support an array of phones for one POI. Signed-off-by: Eugene Nikolsky <omaps@egeek.me>
This commit is contained in:
committed by
Konstantin Pastbin
parent
f1db7d7f98
commit
9be9f17df9
@@ -4,6 +4,7 @@
|
||||
#import <CoreApi/PlacePageData.h>
|
||||
#import <CoreApi/PlacePagePreviewData.h>
|
||||
#import <CoreApi/PlacePageInfoData.h>
|
||||
#import <CoreApi/PlacePagePhone.h>
|
||||
#import <LinkPresentation/LPLinkMetadata.h>
|
||||
|
||||
NSString * httpGe0Url(NSString * shortUrl)
|
||||
@@ -139,7 +140,7 @@ NSString * httpGe0Url(NSString * shortUrl)
|
||||
std::vector<NSString *> strings{self.data.previewData.title,
|
||||
self.data.previewData.subtitle,
|
||||
self.data.previewData.secondarySubtitle,
|
||||
self.data.infoData.phone,
|
||||
self.data.infoData.phone.phone,
|
||||
url,
|
||||
ge0Url};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user