Skip to content

Commit a09a006

Browse files
committed
change method to properties (#374)
* change method to properties * fix nullability
1 parent cd9b38a commit a09a006

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Leanplum-SDK/Classes/LPInbox.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,50 +33,50 @@
3333
/**
3434
* Returns the message identifier of the inbox message.
3535
*/
36-
- (NSString *)messageId;
36+
@property (strong, nonatomic, readonly, nonnull) NSString *messageId;
3737

3838
/**
3939
* Returns the title of the inbox message.
4040
*/
41-
- (NSString *)title;
41+
@property (strong, nonatomic, readonly, nonnull) NSString *title;
4242

4343
/**
4444
* Returns the subtitle of the inbox message.
4545
*/
46-
- (NSString *)subtitle;
46+
@property (strong, nonatomic, readonly, nonnull) NSString *subtitle;
4747

4848
/**
4949
* Returns the image path of the inbox message. Can be nil.
5050
* Use with [UIImage contentsOfFile:].
5151
*/
52-
- (NSString *)imageFilePath;
52+
@property (strong, nonatomic, readonly, nullable) NSString *imageFilePath;
5353

5454
/**
5555
* Returns the image URL of the inbox message.
5656
* You can safely use this with prefetching enabled.
5757
* It will return the file URL path instead if the image is in cache.
5858
*/
59-
- (NSURL *)imageURL;
59+
@property (strong, nonatomic, readonly, nullable) NSURL *imageURL;
6060

6161
/**
6262
* Returns the data of the inbox message. Advanced use only.
6363
*/
64-
- (NSDictionary *)data;
64+
@property (strong, nonatomic, readonly, nullable) NSDictionary *data;
6565

6666
/**
6767
* Returns the delivery timestamp of the inbox message.
6868
*/
69-
- (NSDate *)deliveryTimestamp;
69+
@property (strong, nonatomic, readonly, nullable) NSDate *deliveryTimestamp;
7070

7171
/**
7272
* Return the expiration timestamp of the inbox message.
7373
*/
74-
- (NSDate *)expirationTimestamp;
74+
@property (strong, nonatomic, readonly, nullable) NSDate *expirationTimestamp;
7575

7676
/**
7777
* Returns YES if the inbox message is read.
7878
*/
79-
- (BOOL)isRead;
79+
@property (assign, nonatomic, readonly) BOOL isRead;
8080

8181
/**
8282
* Read the inbox message, marking it as read and invoking its open action.
@@ -105,33 +105,33 @@ typedef void (^LeanplumInboxSyncedBlock)(BOOL success);
105105
/**
106106
* Returns the number of all inbox messages on the device.
107107
*/
108-
- (NSUInteger)count;
108+
@property (assign, nonatomic, readonly) NSUInteger count;
109109

110110
/**
111111
* Returns the number of the unread inbox messages on the device.
112112
*/
113-
- (NSUInteger)unreadCount;
113+
@property (assign, nonatomic, readonly) NSUInteger unreadCount;
114114

115115
/**
116116
* Returns the identifiers of all inbox messages on the device sorted in ascending
117117
* chronological order, i.e. the id of the oldest message is the first one, and the most
118118
* recent one is the last one in the array.
119119
*/
120-
- (NSArray *)messagesIds;
120+
@property (strong, nonatomic, readonly, nonnull) NSArray<NSString *> *messagesIds;
121121

122122
/**
123123
* Returns an array containing all of the inbox messages (as LPInboxMessage objects)
124124
* on the device, sorted in ascending chronological order, i.e. the oldest message is the
125125
* first one, and the most recent one is the last one in the array.
126126
*/
127-
- (NSArray *)allMessages;
127+
@property (strong, nonatomic, readonly, nonnull) NSArray<LPInboxMessage *> *allMessages;
128128

129129
/**
130130
* Returns an array containing all of the unread inbox messages on the device, sorted
131131
* in ascending chronological order, i.e. the oldest message is the first one, and the
132132
* most recent one is the last one in the array.
133133
*/
134-
- (NSArray *)unreadMessages;
134+
@property (strong, nonatomic, readonly, nonnull) NSArray<LPInboxMessage *> *unreadMessages;
135135

136136
/**
137137
* Returns the inbox messages associated with the given messageId identifier.

0 commit comments

Comments
 (0)