1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 02:17:51 +01:00
Telegram/Telegraph/TGImageInfo+Telegraph.h

35 lines
1006 B
C
Raw Normal View History

2014-07-10 16:11:09 +02:00
/*
* 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 "TGImageInfo.h"
#import "TL/TLMetaScheme.h"
2015-10-01 18:19:52 +02:00
#import "SecretLayer23.h"
2016-02-25 01:03:51 +01:00
#import "SecretLayer46.h"
2015-10-01 18:19:52 +02:00
2014-07-10 16:11:09 +02:00
#ifdef __cplusplus
extern "C" {
#endif
2015-10-01 18:19:52 +02:00
NSString *extractFileUrl(id fileLocation);
2014-07-10 16:11:09 +02:00
bool extractFileUrlComponents(NSString *fileUrl, int *datacenterId, int64_t *volumeId, int *localId, int64_t *secret);
#ifdef __cplusplus
}
#endif
@interface TGImageInfo (Telegraph)
- (id)initWithTelegraphSizesDescription:(NSArray *)sizesDesc;
2015-10-01 18:19:52 +02:00
- (id)initWithTelegraphSizesDescription:(NSArray *)sizesDesc cachedData:(__autoreleasing NSData **)cachedData;
- (id)initWithSecret23SizesDescription:(NSArray *)sizesDesc cachedData:(__autoreleasing NSData **)cachedData;
2016-02-25 01:03:51 +01:00
- (id)initWithSecret46SizesDescription:(NSArray *)sizesDesc cachedData:(__autoreleasing NSData **)cachedData;
2014-07-10 16:11:09 +02:00
@end