|
33 | 33 | /** |
34 | 34 | * Returns the message identifier of the inbox message. |
35 | 35 | */ |
36 | | -- (NSString *)messageId; |
| 36 | +@property (strong, nonatomic, readonly, nonnull) NSString *messageId; |
37 | 37 |
|
38 | 38 | /** |
39 | 39 | * Returns the title of the inbox message. |
40 | 40 | */ |
41 | | -- (NSString *)title; |
| 41 | +@property (strong, nonatomic, readonly, nonnull) NSString *title; |
42 | 42 |
|
43 | 43 | /** |
44 | 44 | * Returns the subtitle of the inbox message. |
45 | 45 | */ |
46 | | -- (NSString *)subtitle; |
| 46 | +@property (strong, nonatomic, readonly, nonnull) NSString *subtitle; |
47 | 47 |
|
48 | 48 | /** |
49 | 49 | * Returns the image path of the inbox message. Can be nil. |
50 | 50 | * Use with [UIImage contentsOfFile:]. |
51 | 51 | */ |
52 | | -- (NSString *)imageFilePath; |
| 52 | +@property (strong, nonatomic, readonly, nullable) NSString *imageFilePath; |
53 | 53 |
|
54 | 54 | /** |
55 | 55 | * Returns the image URL of the inbox message. |
56 | 56 | * You can safely use this with prefetching enabled. |
57 | 57 | * It will return the file URL path instead if the image is in cache. |
58 | 58 | */ |
59 | | -- (NSURL *)imageURL; |
| 59 | +@property (strong, nonatomic, readonly, nullable) NSURL *imageURL; |
60 | 60 |
|
61 | 61 | /** |
62 | 62 | * Returns the data of the inbox message. Advanced use only. |
63 | 63 | */ |
64 | | -- (NSDictionary *)data; |
| 64 | +@property (strong, nonatomic, readonly, nullable) NSDictionary *data; |
65 | 65 |
|
66 | 66 | /** |
67 | 67 | * Returns the delivery timestamp of the inbox message. |
68 | 68 | */ |
69 | | -- (NSDate *)deliveryTimestamp; |
| 69 | +@property (strong, nonatomic, readonly, nullable) NSDate *deliveryTimestamp; |
70 | 70 |
|
71 | 71 | /** |
72 | 72 | * Return the expiration timestamp of the inbox message. |
73 | 73 | */ |
74 | | -- (NSDate *)expirationTimestamp; |
| 74 | +@property (strong, nonatomic, readonly, nullable) NSDate *expirationTimestamp; |
75 | 75 |
|
76 | 76 | /** |
77 | 77 | * Returns YES if the inbox message is read. |
78 | 78 | */ |
79 | | -- (BOOL)isRead; |
| 79 | +@property (assign, nonatomic, readonly) BOOL isRead; |
80 | 80 |
|
81 | 81 | /** |
82 | 82 | * Read the inbox message, marking it as read and invoking its open action. |
@@ -105,33 +105,33 @@ typedef void (^LeanplumInboxSyncedBlock)(BOOL success); |
105 | 105 | /** |
106 | 106 | * Returns the number of all inbox messages on the device. |
107 | 107 | */ |
108 | | -- (NSUInteger)count; |
| 108 | +@property (assign, nonatomic, readonly) NSUInteger count; |
109 | 109 |
|
110 | 110 | /** |
111 | 111 | * Returns the number of the unread inbox messages on the device. |
112 | 112 | */ |
113 | | -- (NSUInteger)unreadCount; |
| 113 | +@property (assign, nonatomic, readonly) NSUInteger unreadCount; |
114 | 114 |
|
115 | 115 | /** |
116 | 116 | * Returns the identifiers of all inbox messages on the device sorted in ascending |
117 | 117 | * chronological order, i.e. the id of the oldest message is the first one, and the most |
118 | 118 | * recent one is the last one in the array. |
119 | 119 | */ |
120 | | -- (NSArray *)messagesIds; |
| 120 | +@property (strong, nonatomic, readonly, nonnull) NSArray<NSString *> *messagesIds; |
121 | 121 |
|
122 | 122 | /** |
123 | 123 | * Returns an array containing all of the inbox messages (as LPInboxMessage objects) |
124 | 124 | * on the device, sorted in ascending chronological order, i.e. the oldest message is the |
125 | 125 | * first one, and the most recent one is the last one in the array. |
126 | 126 | */ |
127 | | -- (NSArray *)allMessages; |
| 127 | +@property (strong, nonatomic, readonly, nonnull) NSArray<LPInboxMessage *> *allMessages; |
128 | 128 |
|
129 | 129 | /** |
130 | 130 | * Returns an array containing all of the unread inbox messages on the device, sorted |
131 | 131 | * in ascending chronological order, i.e. the oldest message is the first one, and the |
132 | 132 | * most recent one is the last one in the array. |
133 | 133 | */ |
134 | | -- (NSArray *)unreadMessages; |
| 134 | +@property (strong, nonatomic, readonly, nonnull) NSArray<LPInboxMessage *> *unreadMessages; |
135 | 135 |
|
136 | 136 | /** |
137 | 137 | * Returns the inbox messages associated with the given messageId identifier. |
|
0 commit comments