mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-05 04:10:16 +00:00

git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
31 lines
907 B
Objective-C
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
|