Swiftgram/LegacyComponents/TGLocationAnnotation.h
Ilya Laktyushin b28e18e44f no message
2017-10-05 23:50:33 +03:00

31 lines
907 B
Objective-C

#import <MapKit/MapKit.h>
#import <SSignalKit/SSignalKit.h>
@class TGLocationMediaAttachment;
@class TGUser;
@interface TGLocationPickerAnnotation: NSObject <MKAnnotation>
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
@property (nonatomic, strong) id peer;
- (instancetype)initWithCoordinate:(CLLocationCoordinate2D)coordinate;
@end
@interface TGLocationAnnotation : NSObject <MKAnnotation>
@property (nonatomic, readonly) TGLocationMediaAttachment *location;
@property (nonatomic, readonly) bool isLiveLocation;
@property (nonatomic, strong) id peer;
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
@property (nonatomic, assign) int32_t messageId;
@property (nonatomic, assign) bool isOwn;
@property (nonatomic, assign) bool hasSession;
@property (nonatomic, assign) bool isExpired;
- (instancetype)initWithLocation:(TGLocationMediaAttachment *)location;
@end