aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/abstract/MCOMessageHeader.h
diff options
context:
space:
mode:
authorGravatar Romain Pouclet <romain.pouclet@gmail.com>2016-10-13 19:42:06 -0400
committerGravatar HoĆ  V. DINH <dinh.viet.hoa@gmail.com>2016-10-13 16:42:06 -0700
commitabedd87bb02f975b0b1ee9c4cf2f0e6adde31366 (patch)
treeacc88b3199cf069f3876685e69664da8a21a3806 /src/objc/abstract/MCOMessageHeader.h
parentf9471a7cace7ef0ddae8790021933b1c6cd963d8 (diff)
Type annotations (#1530)
* Add type annotations on MCOMessageBuilder * Add type annotations on MCOAbstractMessage * Add Type annotations on MCOAbstractPart * Add type annotations to MCOMessageHeader * Add type annotatins to MCOAddress
Diffstat (limited to 'src/objc/abstract/MCOMessageHeader.h')
-rw-r--r--src/objc/abstract/MCOMessageHeader.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/objc/abstract/MCOMessageHeader.h b/src/objc/abstract/MCOMessageHeader.h
index e68cf33c..ba426bd0 100644
--- a/src/objc/abstract/MCOMessageHeader.h
+++ b/src/objc/abstract/MCOMessageHeader.h
@@ -25,10 +25,10 @@
@property (nonatomic, readonly, getter=isMessageIDAutoGenerated) BOOL messageIDAutoGenerated;
/** References field. It's an array of message-ids.*/
-@property (nonatomic, copy) NSArray * /* NSString */ references;
+@property (nonatomic, copy) NSArray<NSString *> * references;
/** In-Reply-To field. It's an array of message-ids.*/
-@property (nonatomic, copy) NSArray * /* NSString */ inReplyTo;
+@property (nonatomic, copy) NSArray<NSString *> * inReplyTo;
/** Date field: sent date of the message.*/
@property (nonatomic, strong) NSDate * date;
@@ -42,17 +42,17 @@
/** From field: address of the sender of the message.*/
@property (nonatomic, copy) MCOAddress * from;
-/** To field: recipient of the message. It's an array of MCOAddress.*/
-@property (nonatomic, copy) NSArray * /* MCOAddress */ to;
+/** To field: recipient of the message.*/
+@property (nonatomic, copy) NSArray<MCOAddress *> *to;
-/** Cc field: cc recipient of the message. It's an array of MCOAddress.*/
-@property (nonatomic, copy) NSArray * /* MCOAddress */ cc;
+/** Cc field: cc recipient of the message.*/
+@property (nonatomic, copy) NSArray<MCOAddress *> * cc;
-/** Bcc field: bcc recipient of the message. It's an array of MCOAddress.*/
-@property (nonatomic, copy) NSArray * /* MCOAddress */ bcc;
+/** Bcc field: bcc recipient of the message.*/
+@property (nonatomic, copy) NSArray<MCOAddress *> * bcc;
-/** Reply-To field. It's an array of MCOAddress.*/
-@property (nonatomic, copy) NSArray * /* MCOAddress */ replyTo;
+/** Reply-To field.*/
+@property (nonatomic, copy) NSArray<MCOAddress *> * replyTo;
/** Subject of the message.*/
@property (nonatomic, copy) NSString * subject;
@@ -76,7 +76,7 @@
- (NSString *) extraHeaderValueForName:(NSString *)name;
/** Returns an array with the names of all custom headers.*/
-- (NSArray * /* NSString */) allExtraHeadersNames;
+- (NSArray<NSString *> *) allExtraHeadersNames;
/** Extracted subject (also remove square brackets).*/
- (NSString *) extractedSubject;
@@ -88,10 +88,10 @@
- (void) importHeadersData:(NSData *)data;
/** Returns a header that can be used as a base for a reply message.*/
-- (MCOMessageHeader *) replyHeaderWithExcludedRecipients:(NSArray * /* MCOAddress */)excludedRecipients;
+- (MCOMessageHeader *) replyHeaderWithExcludedRecipients:(NSArray<MCOAddress *> *)excludedRecipients;
/** Returns a header that can be used as a base for a reply all message.*/
-- (MCOMessageHeader *) replyAllHeaderWithExcludedRecipients:(NSArray * /* MCOAddress */)excludedRecipients;
+- (MCOMessageHeader *) replyAllHeaderWithExcludedRecipients:(NSArray<MCOAddress *> *)excludedRecipients;
/** Returns a header that can be used as a base for a forward message.*/
- (MCOMessageHeader *) forwardHeader;