pEpObjCAdapterFramework/PEPAttachment.h
author Dirk Zimmermann <dz@pep.security>
Fri, 01 Mar 2019 16:03:28 +0100
branchIOS-1480
changeset 860 3276a0d35d09
parent 859 pEpObjCAdapter/PEPAttachment.h@b2ca1a12396c
child 902 32760267cd59
permissions -rw-r--r--
IOS-1480 Publish PEPAttachment.
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@859
    11
#import <PEPObjCAdapterFramework/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