pEpObjCAdapterFramework/PEPMessage.h
author Dirk Zimmermann <dz@pep.security>
Wed, 20 Mar 2019 16:40:35 +0100
branchIOS-1480
changeset 902 32760267cd59
parent 848 fcc04485e31f
child 963 9c02a7b7b8ec
permissions -rw-r--r--
IOS-1480 Avoid framework imports.
     1 //
     2 //  PEPMessage.h
     3 //  pEpObjCAdapter
     4 //
     5 //  Created by Dirk Zimmermann on 10.11.17.
     6 //  Copyright © 2017 p≡p. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 #import "PEPTypes.h"
    12 #import "PEPEngineTypes.h"
    13 
    14 @class PEPIdentity;
    15 @class PEPAttachment;
    16 
    17 @interface PEPMessage : NSObject
    18 
    19 @property (nonatomic, nullable) NSString *messageID;
    20 
    21 @property (nonatomic, nullable) PEPIdentity *from;
    22 @property (nonatomic, nullable) NSArray<PEPIdentity *> *to;
    23 @property (nonatomic, nullable) NSArray<PEPIdentity *> *cc;
    24 @property (nonatomic, nullable) NSArray<PEPIdentity *> *bcc;
    25 
    26 @property (nonatomic, nullable) NSString *shortMessage;
    27 @property (nonatomic, nullable) NSString *longMessage;
    28 @property (nonatomic, nullable) NSString *longMessageFormatted;
    29 
    30 @property (nonatomic, nullable) NSArray<PEPIdentity *> *replyTo;
    31 @property (nonatomic, nullable) NSArray<NSString *> *inReplyTo;
    32 @property (nonatomic, nullable) NSArray<NSString *> *references;
    33 
    34 @property (nonatomic, nullable) NSDate *sentDate;
    35 @property (nonatomic, nullable) NSDate *receivedDate;
    36 
    37 @property (nonatomic, nullable) NSArray<PEPAttachment *> *attachments;
    38 
    39 @property (nonatomic, nullable) NSArray<NSArray<NSString *> *> *optionalFields;
    40 @property (nonatomic, nullable) NSArray<NSString *> *keywords;
    41 @property (nonatomic, nullable) PEPIdentity *receivedBy;
    42 @property (nonatomic) PEPMsgDirection direction;
    43 
    44 /**
    45  For backwards compatiblity.
    46  */
    47 - (instancetype _Nonnull)initWithDictionary:(PEPDict *)dict;
    48 
    49 /**
    50  For backwards compatiblity.
    51  */
    52 - (PEPDict * _Nonnull)dictionary;
    53 
    54 /**
    55  For backwards compatiblity.
    56  */
    57 - (PEPMutableDict * _Nonnull)mutableDictionary;
    58 
    59 @end