2014-12-18 00:00:10 +01:00
|
|
|
// Created by Frederic Jacobs on 17/12/14.
|
|
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
#import <Foundation/Foundation.h>
|
2015-06-07 17:43:47 +02:00
|
|
|
#import <JSQMessagesViewController/JSQPhotoMediaItem.h>
|
2014-12-21 12:52:42 +01:00
|
|
|
#import "TSAttachmentStream.h"
|
2014-12-18 00:00:10 +01:00
|
|
|
|
2015-06-07 17:43:47 +02:00
|
|
|
@interface TSPhotoAdapter : JSQPhotoMediaItem
|
2014-12-18 00:00:10 +01:00
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
- (instancetype)initWithAttachment:(TSAttachmentStream *)attachment;
|
2014-12-18 00:00:10 +01:00
|
|
|
|
|
|
|
- (BOOL)isImage;
|
2015-01-29 04:50:41 +01:00
|
|
|
- (BOOL)isAudio;
|
|
|
|
- (BOOL)isVideo;
|
2014-12-26 23:18:54 +01:00
|
|
|
@property NSString *attachmentId;
|
|
|
|
|
2014-12-18 00:00:10 +01:00
|
|
|
@end
|