pEpObjCAdapterFramework/PEPAttachment.h
author Dirk Zimmermann <dz@pep.security>
Fri, 06 Sep 2019 11:03:27 +0200
branchIOS-1784
changeset 1225 6d89f5f624db
parent 963 9c02a7b7b8ec
child 1047 b9068a05fbcd
permissions -rw-r--r--
IOS-1784 Separate concerns.
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
dz@963
    15
@property (nonatomic, nonnull) 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
dz@963
    21
- (_Nonnull instancetype)initWithData:(NSData * _Nonnull)data;
dirk@581
    22
dirk@576
    23
@end