session-ios/Signal/src/textsecure/Messages/Attachements/TSAttachmentStream.h
Frederic Jacobs 402df72306 Attachments handling
- Sends image rotated
- If message is delete, delete the attachment db object and file
- Delete attachment from detail view
2015-01-04 11:30:26 +01:00

24 lines
561 B
Objective-C

//
// TSAttachementStream.h
// Signal
//
// Created by Frederic Jacobs on 17/12/14.
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
//
#import "TSAttachment.h"
@interface TSAttachmentStream : TSAttachment <YapDatabaseRelationshipNode>
- (instancetype)initWithIdentifier:(NSString*)identifier
data:(NSData*)data
key:(NSData*)key
contentType:(NSString*)contentType NS_DESIGNATED_INITIALIZER;;
- (UIImage *)image;
- (BOOL)isImage;
- (BOOL)isVideo;
@end