1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
#include "Framework.h"
#include "indexer/feature_meta.hpp"
#include "storage/index.hpp"
typedef NS_ENUM(NSUInteger, MWMPlacePageCellType)
{
MWMPlacePageCellTypePostcode = feature::Metadata::EType::FMD_COUNT,
MWMPlacePageCellTypePhoneNumber,
MWMPlacePageCellTypeWebsite,
MWMPlacePageCellTypeURL,
MWMPlacePageCellTypeEmail,
MWMPlacePageCellTypeOperator,
MWMPlacePageCellTypeOpenHours,
MWMPlacePageCellTypeWiFi,
MWMPlacePageCellTypeCoordinate,
MWMPlacePageCellTypeBookmark,
MWMPlacePageCellTypeEditButton,
MWMPlacePageCellTypeAddBusinessButton,
MWMPlacePageCellTypeAddPlaceButton,
MWMPlacePageCellTypeReportButton,
MWMPlacePageCellTypeCategory,
MWMPlacePageCellTypeName,
MWMPlacePageCellTypeAdditionalName,
MWMPlacePageCellTypeAddAdditionalName,
MWMPlacePageCellTypeAddAdditionalNamePlaceholder,
MWMPlacePageCellTypeStreet,
MWMPlacePageCellTypeBuilding,
MWMPlacePageCellTypeZipCode,
MWMPlacePageCellTypeBuildingLevels,
MWMPlacePageCellTypeCuisine,
MWMPlacePageCellTypeNote,
MWMPlacePageCellTypeBookingMore,
MWMPlacePageCellTypeCount
};
using MWMPlacePageCellTypeValueMap = map<MWMPlacePageCellType, string>;
@class MWMPlacePageViewManager;
@interface MWMPlacePageEntity : NSObject
@property (copy, nonatomic) NSString * title;
@property (copy, nonatomic) NSString * subtitle;
@property (copy, nonatomic) NSString * address;
@property (copy, nonatomic) NSString * bookmarkTitle;
@property (copy, nonatomic) NSString * bookmarkCategory;
@property (copy, nonatomic) NSString * bookmarkDescription;
@property (nonatomic, readonly) BOOL isHTMLDescription;
@property (copy, nonatomic) NSString * bookmarkColor;
@property (copy, nonatomic) NSString * bookingRating;
@property (copy, nonatomic) NSString * bookingPrice;
@property (copy, nonatomic) NSString * bookingOnlinePrice;
@property (nonatomic) BookmarkAndCategory bac;
@property (weak, nonatomic) MWMPlacePageViewManager * manager;
- (FeatureID const &)featureID;
- (BOOL)isMyPosition;
- (BOOL)isBookmark;
- (BOOL)isApi;
- (BOOL)isBooking;
- (ms::LatLon)latlon;
- (m2::PointD const &)mercator;
- (NSString *)apiURL;
- (NSURL *)bookingUrl;
- (string)titleForNewBookmark;
- (instancetype)initWithInfo:(place_page::Info const &)info;
- (void)synchronize;
- (void)onlinePricingWithCompletionBlock:(TMWMVoidBlock)completion failure:(TMWMVoidBlock)failure;
- (void)toggleCoordinateSystem;
- (NSString *)getCellValue:(MWMPlacePageCellType)cellType;
- (place_page::Info const &)info;
- (storage::TCountryId const &)countryId;
@end
|