mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-19 09:41:29 +00:00
38 lines
749 B
Objective-C
38 lines
749 B
Objective-C
#import <LegacyComponents/TGMediaPickerGalleryPhotoItem.h>
|
|
#import "TGMediaPickerGalleryPhotoItemView.h"
|
|
|
|
#import <LegacyComponents/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 | TGPhotoEditorQualityTab;
|
|
}
|
|
|
|
- (Class)viewClass
|
|
{
|
|
return [TGMediaPickerGalleryPhotoItemView class];
|
|
}
|
|
|
|
@end
|