mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Build ChatListUI
This commit is contained in:
32
submodules/LegacyComponents/Sources/TGLocationAnnotation.h
Normal file
32
submodules/LegacyComponents/Sources/TGLocationAnnotation.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#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;
|
||||
|
||||
- (instancetype)initWithLocation:(TGLocationMediaAttachment *)location;
|
||||
- (instancetype)initWithLocation:(TGLocationMediaAttachment *)location color:(UIColor *)color;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user