1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 09:29:55 +01:00
Telegram/legacy/TelegraphKit/TGAudioMediaAttachment.h
2016-02-25 01:03:51 +01:00

34 lines
1002 B
Objective-C

/*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import "TGMediaAttachment.h"
#define TGAudioMediaAttachmentType 0x3A0E7A32
@interface TGAudioMediaAttachment : TGMediaAttachment <TGMediaAttachmentParser>
@property (nonatomic) int64_t audioId;
@property (nonatomic) int64_t accessHash;
@property (nonatomic) int32_t datacenterId;
@property (nonatomic) int64_t localAudioId;
@property (nonatomic) int32_t duration;
@property (nonatomic) int32_t fileSize;
@property (nonatomic, strong) NSString *audioUri;
- (NSString *)localFilePath;
+ (NSString *)localAudioFileDirectoryForLocalAudioId:(int64_t)audioId;
+ (NSString *)localAudioFileDirectoryForRemoteAudioId:(int64_t)audioId;
+ (NSString *)localAudioFilePathForLocalAudioId:(int64_t)audioId;
+ (NSString *)localAudioFilePathForRemoteAudioId:(int64_t)audioId;
@end