1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGWebSearchInternalGifItem.m

42 lines
855 B
Mathematica
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import "TGWebSearchInternalGifItem.h"
#import "TGWebSearchInternalGifItemView.h"
2016-02-25 01:03:51 +01:00
#import "TGWebSearchInternalGifResult+TGMediaItem.h"
2015-10-01 18:19:52 +02:00
@implementation TGWebSearchInternalGifItem
2016-02-25 01:03:51 +01:00
@synthesize selectionContext;
- (instancetype)initWithSearchResult:(TGWebSearchInternalGifResult *)searchResult
2015-10-01 18:19:52 +02:00
{
self = [super init];
if (self != nil)
{
_webSearchResult = searchResult;
}
return self;
}
2016-02-25 01:03:51 +01:00
- (instancetype)copyWithZone:(NSZone *)__unused zone
2015-10-01 18:19:52 +02:00
{
2016-02-25 01:03:51 +01:00
return self;
2015-10-01 18:19:52 +02:00
}
2016-02-25 01:03:51 +01:00
- (id<TGMediaSelectableItem>)selectableMediaItem
2015-10-01 18:19:52 +02:00
{
2016-02-25 01:03:51 +01:00
return self.webSearchResult;
2015-10-01 18:19:52 +02:00
}
- (Class)viewClass
{
return [TGWebSearchInternalGifItemView class];
}
- (BOOL)isEqual:(id)object
{
return [object isKindOfClass:[TGWebSearchInternalGifItem class]] && TGObjectCompare(_webSearchResult, ((TGWebSearchInternalGifItem *)object)->_webSearchResult);
}
@end