mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
37 lines
656 B
Objective-C
37 lines
656 B
Objective-C
#import "TGMediaPickerGalleryPhotoItem.h"
|
|
#import "TGMediaPickerGalleryPhotoItemView.h"
|
|
|
|
#import "TGMediaAsset+TGMediaEditableItem.h"
|
|
|
|
@implementation TGMediaPickerGalleryPhotoItem
|
|
|
|
@synthesize selectionContext;
|
|
@synthesize editingContext;
|
|
|
|
- (NSString *)uniqueId
|
|
{
|
|
return self.asset.identifier;
|
|
}
|
|
|
|
- (id<TGMediaSelectableItem>)selectableMediaItem
|
|
{
|
|
return self.asset;
|
|
}
|
|
|
|
- (id<TGMediaEditableItem>)editableMediaItem
|
|
{
|
|
return self.asset;
|
|
}
|
|
|
|
- (TGPhotoEditorTab)toolbarTabs
|
|
{
|
|
return TGPhotoEditorCaptionTab | TGPhotoEditorCropTab | TGPhotoEditorToolsTab;
|
|
}
|
|
|
|
- (Class)viewClass
|
|
{
|
|
return [TGMediaPickerGalleryPhotoItemView class];
|
|
}
|
|
|
|
@end
|