1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 17:38:07 +01:00
Telegram/Telegraph/TGMediaPickerGalleryItem.m
2016-02-25 01:03:51 +01:00

27 lines
522 B
Objective-C

#import "TGMediaPickerGalleryItem.h"
#import "TGModernGalleryItemView.h"
@implementation TGMediaPickerGalleryItem
- (instancetype)initWithAsset:(TGMediaAsset *)asset
{
self = [super init];
if (self != nil)
{
_asset = asset;
}
return self;
}
- (Class)viewClass
{
return [TGModernGalleryItemView class];
}
- (BOOL)isEqual:(id)object
{
return [object isKindOfClass:[TGMediaPickerGalleryItem class]] && TGObjectCompare(_asset, ((TGMediaPickerGalleryItem *)object)->_asset);
}
@end