Swiftgram/LegacyComponents/TGLocationAnnotation.h
Ilya Laktyushin d7593512d5 no message
2017-10-01 00:02:37 +03:00

29 lines
807 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, strong) id peer;
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
@property (nonatomic, assign) int32_t messageId;
@property (nonatomic, assign) bool isOwn;
@property (nonatomic, assign) bool isExpired;
- (instancetype)initWithLocation:(TGLocationMediaAttachment *)location;
@end