[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:
Eugene Nikolsky
2025-04-02 18:18:33 +03:00
committed by Konstantin Pastbin
parent f1db7d7f98
commit 9be9f17df9
9 changed files with 60 additions and 12 deletions

View File

@@ -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};