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

21 lines
1.0 KiB
Objective-C

#import "TGModernMediaListImageItem.h"
#import "TGWebSearchListItem.h"
#import "TGModernMediaListEditableItem.h"
#import "TGWebSearchInternalImageResult.h"
@interface TGWebSearchInternalImageItem : TGModernMediaListImageItem <TGWebSearchListItem, TGModernMediaListEditableItem>
@property (nonatomic, strong, readonly) TGWebSearchInternalImageResult *webSearchResult;
@property (nonatomic, copy, readonly) bool (^isEditing)();
@property (nonatomic, copy) void (^toggleEditing)();
@property (nonatomic, copy) void (^itemSelected)(id<TGWebSearchListItem>);
@property (nonatomic, copy) bool (^isItemSelected)(id<TGWebSearchListItem>);
@property (nonatomic, copy) bool (^isItemHidden)(id<TGWebSearchListItem>);
- (instancetype)initWithSearchResult:(TGWebSearchInternalImageResult *)searchResult isEditing:(bool (^)())isEditing toggleEditing:(void (^)())toggleEditing itemSelected:(void (^)(id<TGWebSearchListItem>))itemSelected isItemSelected:(bool (^)(id<TGWebSearchListItem>))isItemSelected isItemHidden:(bool (^)(id<TGWebSearchListItem>))isItemHidden;
@end