1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 02:17:51 +01:00
Telegram/Telegraph/TGMediaPickerGalleryPhotoItem.m

37 lines
656 B
Mathematica
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import "TGMediaPickerGalleryPhotoItem.h"
#import "TGMediaPickerGalleryPhotoItemView.h"
2016-02-25 01:03:51 +01:00
#import "TGMediaAsset+TGMediaEditableItem.h"
2015-10-01 18:19:52 +02:00
@implementation TGMediaPickerGalleryPhotoItem
2016-02-25 01:03:51 +01:00
@synthesize selectionContext;
@synthesize editingContext;
2015-10-01 18:19:52 +02:00
- (NSString *)uniqueId
{
2016-02-25 01:03:51 +01:00
return self.asset.identifier;
}
- (id<TGMediaSelectableItem>)selectableMediaItem
{
return self.asset;
2015-10-01 18:19:52 +02:00
}
2016-02-25 01:03:51 +01:00
- (id<TGMediaEditableItem>)editableMediaItem
2015-10-01 18:19:52 +02:00
{
return self.asset;
}
2016-02-25 01:03:51 +01:00
- (TGPhotoEditorTab)toolbarTabs
{
return TGPhotoEditorCaptionTab | TGPhotoEditorCropTab | TGPhotoEditorToolsTab;
}
2015-10-01 18:19:52 +02:00
- (Class)viewClass
{
return [TGMediaPickerGalleryPhotoItemView class];
}
@end