Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
32
iphone/Maps/Core/Search/SearchResult.h
Normal file
32
iphone/Maps/Core/Search/SearchResult.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#import "SearchItemType.h"
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreLocation/CoreLocation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface SearchResult : NSObject
|
||||
|
||||
@property (nonatomic, readonly) NSUInteger index;
|
||||
@property (nonatomic, readonly) NSString * titleText;
|
||||
@property (nonatomic, readonly, nullable) NSString * branchText;
|
||||
@property (nonatomic, readonly) NSString * iconImageName;
|
||||
@property (nonatomic, readonly) NSString * addressText;
|
||||
@property (nonatomic, readonly) NSString * infoText;
|
||||
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
|
||||
@property (nonatomic, readonly) CGPoint point;
|
||||
@property (nonatomic, readonly, nullable) NSString * distanceText;
|
||||
@property (nonatomic, readonly, nullable) NSString * openStatusText;
|
||||
@property (nonatomic, readonly) UIColor * openStatusColor;
|
||||
@property (nonatomic, readonly) BOOL isPopularHidden;
|
||||
@property (nonatomic, readonly) NSString * suggestion;
|
||||
@property (nonatomic, readonly) BOOL isPureSuggest;
|
||||
@property (nonatomic, readonly) NSArray<NSValue *> * highlightRanges;
|
||||
@property (nonatomic, readonly) SearchItemType itemType;
|
||||
|
||||
/// This initializer is intended only for testing purposes.
|
||||
- (instancetype)initWithTitleText:(NSString *)titleText type:(SearchItemType)type suggestion:(NSString *)suggestion;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Loading…
Add table
Add a link
Reference in a new issue