1
0
mirror of https://github.com/danog/Telegram.git synced 2025-01-22 05:52:06 +01:00
Telegram/Telegraph/TGLocationVenue.h
2015-10-01 19:19:52 +03:00

32 lines
1.1 KiB
Objective-C

#import <CoreLocation/CoreLocation.h>
@class TGVenueAttachment;
@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;
@end
extern NSString *const TGLocationGooglePlacesVenueProvider;
extern NSString *const TGLocationFoursquareVenueProvider;