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

28 lines
753 B
Objective-C

#import <Foundation/Foundation.h>
@class PHFetchResult;
@class TGMediaPickerAsset;
@interface TGAssetsFetchResult : NSObject
@property (nonatomic, readonly) NSUInteger count;
@property (nonatomic, readonly) id firstObject;
@property (nonatomic, readonly) id lastObject;
- (instancetype)initWithPHFetchResult:(PHFetchResult *)fetchResult;
- (instancetype)initWithAssets:(NSArray *)assets;
- (id)objectAtIndex:(NSUInteger)index;
- (id)objectAtIndexedSubscript:(NSUInteger)idx;
- (NSUInteger)indexOfObject:(id)anObject;
- (NSUInteger)indexOfObject:(id)anObject inRange:(NSRange)range;
- (NSArray *)objectsAtIndexes:(NSIndexSet *)indexes;
- (BOOL)containsObject:(id)anObject;
- (void)enumerateWithBlock:(void (^)(TGMediaPickerAsset *))block;
@end