mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
31 lines
908 B
Objective-C
31 lines
908 B
Objective-C
|
|
|
|
#import <LegacyComponents/TGMediaAttachment.h>
|
|
|
|
#define TGLocationMediaAttachmentType 0x0C9ED06E
|
|
|
|
@interface TGVenueAttachment : NSObject <NSCoding>
|
|
|
|
@property (nonatomic, strong, readonly) NSString *title;
|
|
@property (nonatomic, strong, readonly) NSString *address;
|
|
@property (nonatomic, strong, readonly) NSString *provider;
|
|
@property (nonatomic, strong, readonly) NSString *venueId;
|
|
@property (nonatomic, strong, readonly) NSString *type;
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title address:(NSString *)address provider:(NSString *)provider venueId:(NSString *)venueId type:(NSString *)type;
|
|
|
|
@end
|
|
|
|
@interface TGLocationMediaAttachment : TGMediaAttachment <TGMediaAttachmentParser, NSCoding>
|
|
|
|
@property (nonatomic) double latitude;
|
|
@property (nonatomic) double longitude;
|
|
|
|
@property (nonatomic, strong) TGVenueAttachment *venue;
|
|
|
|
@property (nonatomic) int32_t period;
|
|
|
|
- (bool)isLiveLocation;
|
|
|
|
@end
|