mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00

git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
35 lines
1.2 KiB
Objective-C
35 lines
1.2 KiB
Objective-C
#import <CoreLocation/CoreLocation.h>
|
|
|
|
@class TGVenueAttachment;
|
|
@class TGLocationMediaAttachment;
|
|
|
|
@interface TGLocationVenue : NSObject
|
|
|
|
@property (nonatomic, readonly) NSString *identifier;
|
|
@property (nonatomic, readonly) NSString *name;
|
|
@property (nonatomic, readonly) NSString *displayAddress;
|
|
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
|
|
@property (nonatomic, readonly) NSString *categoryName;
|
|
@property (nonatomic, readonly) NSURL *categoryIconUrl;
|
|
|
|
@property (nonatomic, readonly) NSString *provider;
|
|
|
|
@property (readonly, nonatomic) NSString *country;
|
|
@property (readonly, nonatomic) NSString *state;
|
|
@property (readonly, nonatomic) NSString *city;
|
|
@property (readonly, nonatomic) NSString *address;
|
|
@property (readonly, nonatomic) NSString *crossStreet;
|
|
@property (readonly, nonatomic) NSString *street;
|
|
|
|
- (TGVenueAttachment *)venueAttachment;
|
|
|
|
+ (TGLocationVenue *)venueWithFoursquareDictionary:(NSDictionary *)dictionary;
|
|
+ (TGLocationVenue *)venueWithGooglePlacesDictionary:(NSDictionary *)dictionary;
|
|
|
|
+ (TGLocationVenue *)venueWithLocationAttachment:(TGLocationMediaAttachment *)attachment;
|
|
|
|
@end
|
|
|
|
extern NSString *const TGLocationGooglePlacesVenueProvider;
|
|
extern NSString *const TGLocationFoursquareVenueProvider;
|