1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 17:37:33 +01:00
Telegram/Telegraph/TGWebSearchResultsGalleryInternalGifItem.m
2015-10-01 19:19:52 +03:00

35 lines
898 B
Objective-C

#import "TGWebSearchResultsGalleryInternalGifItem.h"
#import "TGWebSearchResultsGalleryInternalGifItemView.h"
@implementation TGWebSearchResultsGalleryInternalGifItem
@synthesize itemSelected = _itemSelected;
- (instancetype)initWithSearchResult:(TGWebSearchInternalGifResult *)searchResult
{
self = [super init];
if (self != nil)
{
_webSearchResult = searchResult;
}
return self;
}
- (NSString *)uniqueId
{
return [[NSString alloc] initWithFormat:@"TGWebSearchResultsGalleryInternalGifItem_%lld", (long long)_webSearchResult.documentId];
}
- (Class)viewClass
{
return [TGWebSearchResultsGalleryInternalGifItemView class];
}
- (BOOL)isEqual:(id)object
{
return [object isKindOfClass:[TGWebSearchResultsGalleryInternalGifItem class]] && TGObjectCompare(_webSearchResult, ((TGWebSearchResultsGalleryInternalGifItem *)object)->_webSearchResult);
}
@end