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