Skip to content

Commit

Permalink
Add description to OSRequestGetInAppMessages
Browse files Browse the repository at this point in the history
* Without a description, the object will return something like `<OSRequestGetInAppMessages: 0x600001798bc0>`. By adding a predictable description, we can operate on the object.
  • Loading branch information
nan-li committed Jan 28, 2025
1 parent 0cdd45a commit b3cd370
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ of this software and associated documentation files (the "Software"), to deal
#import "OSInAppMessagingRequests.h"

@implementation OSRequestGetInAppMessages
- (NSString *)description {
return [NSString stringWithFormat:@"<OSRequestGetInAppMessages from %@>", self.path];
}

+ (instancetype _Nonnull) withSubscriptionId:(NSString * _Nonnull)subscriptionId
withSessionDuration:(NSNumber * _Nonnull)sessionDuration
withRetryCount:(NSNumber *)retryCount
Expand Down

0 comments on commit b3cd370

Please sign in to comment.