mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
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
|