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
|