Skip to content

Commit b3cd370

Browse files
committed
Add description to OSRequestGetInAppMessages
* Without a description, the object will return something like `<OSRequestGetInAppMessages: 0x600001798bc0>`. By adding a predictable description, we can operate on the object.
1 parent 0cdd45a commit b3cd370

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Requests/OSInAppMessagingRequests.m

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ of this software and associated documentation files (the "Software"), to deal
2828
#import "OSInAppMessagingRequests.h"
2929

3030
@implementation OSRequestGetInAppMessages
31+
- (NSString *)description {
32+
return [NSString stringWithFormat:@"<OSRequestGetInAppMessages from %@>", self.path];
33+
}
34+
3135
+ (instancetype _Nonnull) withSubscriptionId:(NSString * _Nonnull)subscriptionId
3236
withSessionDuration:(NSNumber * _Nonnull)sessionDuration
3337
withRetryCount:(NSNumber *)retryCount

0 commit comments

Comments
 (0)