pEpObjCAdapterFramework/PEPAttachment.h
author Dirk Zimmermann <dz@pep.security>
Wed, 20 Mar 2019 16:40:35 +0100
branchIOS-1480
changeset 902 32760267cd59
parent 860 3276a0d35d09
child 963 9c02a7b7b8ec
permissions -rw-r--r--
IOS-1480 Avoid framework imports.
dirk@576
     1
//
dirk@576
     2
//  PEPAttachment.h
dirk@576
     3
//  pEpObjCAdapter
dirk@576
     4
//
dirk@576
     5
//  Created by Dirk Zimmermann on 16.04.18.
dirk@576
     6
//  Copyright © 2018 p≡p. All rights reserved.
dirk@576
     7
//
dirk@576
     8
dirk@576
     9
#import <Foundation/Foundation.h>
dirk@576
    10
dz@902
    11
#import "PEPEngineTypes.h"
dirk@577
    12
dirk@576
    13
@interface PEPAttachment : NSObject
dirk@576
    14
dirk@577
    15
@property (nonatomic) NSData *data;
dirk@577
    16
@property (nonatomic) NSInteger size;
dirk@577
    17
@property (nonatomic, nullable) NSString *mimeType;
dirk@577
    18
@property (nonatomic, nullable) NSString *filename;
dz@859
    19
@property (nonatomic) PEPContentDisposition contentDisposition;
dirk@577
    20
dirk@581
    21
- (_Nonnull instancetype)initWithData:(NSData *)data;
dirk@581
    22
dirk@576
    23
@end