mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
34 lines
1.1 KiB
Objective-C
34 lines
1.1 KiB
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, strong) UIColor *color;
|
|
@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;
|
|
@property (nonatomic, strong) NSNumber *heading;
|
|
|
|
- (instancetype)initWithLocation:(TGLocationMediaAttachment *)location;
|
|
- (instancetype)initWithLocation:(TGLocationMediaAttachment *)location color:(UIColor *)color;
|
|
|
|
@end
|