mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
38 lines
689 B
Objective-C
38 lines
689 B
Objective-C
#import "TGMediaPickerGalleryPhotoItem.h"
|
|
#import "TGMediaPickerGalleryPhotoItemView.h"
|
|
|
|
#import "TGMediaAsset+TGMediaEditableItem.h"
|
|
|
|
@implementation TGMediaPickerGalleryPhotoItem
|
|
|
|
@synthesize selectionContext;
|
|
@synthesize editingContext;
|
|
@synthesize stickersContext;
|
|
|
|
- (NSString *)uniqueId
|
|
{
|
|
return self.asset.uniqueIdentifier;
|
|
}
|
|
|
|
- (id<TGMediaSelectableItem>)selectableMediaItem
|
|
{
|
|
return self.asset;
|
|
}
|
|
|
|
- (id<TGMediaEditableItem>)editableMediaItem
|
|
{
|
|
return self.asset;
|
|
}
|
|
|
|
- (TGPhotoEditorTab)toolbarTabs
|
|
{
|
|
return TGPhotoEditorCropTab | TGPhotoEditorToolsTab | TGPhotoEditorPaintTab;
|
|
}
|
|
|
|
- (Class)viewClass
|
|
{
|
|
return [TGMediaPickerGalleryPhotoItemView class];
|
|
}
|
|
|
|
@end
|