mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 17:38:07 +01:00
27 lines
528 B
Mathematica
27 lines
528 B
Mathematica
|
#import "TGMediaPickerGalleryItem.h"
|
||
|
#import "TGModernGalleryItemView.h"
|
||
|
|
||
|
@implementation TGMediaPickerGalleryItem
|
||
|
|
||
|
- (instancetype)initWithAsset:(TGMediaPickerAsset *)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
|