1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Watch/Bridge/TGBridgeImageInfo.h
2015-10-01 19:19:52 +03:00

23 lines
608 B
Objective-C

#import "TGBridgeCommon.h"
@interface TGBridgeImageSizeInfo : NSObject <NSCoding>
@property (nonatomic, strong) NSString *url;
@property (nonatomic, assign) CGSize dimensions;
@property (nonatomic, assign) int32_t fileSize;
@end
@interface TGBridgeImageInfo : NSObject <NSCoding>
{
NSArray *_entries;
}
@property (nonatomic, readonly) NSArray *entries;
- (NSString *)closestImageUrlWithSize:(CGSize)size resultingSize:(CGSize *)resultingSize;
- (NSString *)imageUrlForSizeLargerThanSize:(CGSize)size actualSize:(CGSize *)actualSize;
- (NSString *)imageUrlForLargestSize:(CGSize *)actualSize;
@end