session-ios/Signal/src/textsecure/Messages/TSAttachment.h
Christine Corbett ccdc4b5d17 Redesign implementation.
Result of stashed commits by @corbett and @abolishme
2015-01-24 16:28:34 -10:00

25 lines
591 B
Objective-C

//
// TSAttachment.h
// TextSecureKit
//
// Created by Frederic Jacobs on 12/11/14.
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TSYapDatabaseObject.h"
@interface TSAttachment : TSYapDatabaseObject
- (NSNumber*)identifier;
@property (nonatomic, readonly) NSData *encryptionKey;
@property (nonatomic, readonly) NSString *contentType;
- (instancetype)initWithIdentifier:(NSString*)identifier
encryptionKey:(NSData*)encryptionKey
contentType:(NSString*)contentType;
@end