1
0
mirror of https://github.com/danog/Telegram.git synced 2025-01-05 20:48:36 +01:00
Telegram/Telegraph/TGWebSearchResultsGalleryInternalGifItem.m

35 lines
898 B
Mathematica
Raw Normal View History

2015-10-01 18:19:52 +02:00
#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