Skip to content

Commit f062013

Browse files
committed
[nits] Update string descriptions of Requests
1 parent c2be80a commit f062013

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

iOS_SDK/OneSignalSDK/OneSignalUser/Source/Requests/OSRequestFetchUser.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class OSRequestFetchUser: OneSignalRequest, OSUserRequest {
5858
self.aliasLabel = aliasLabel
5959
self.aliasId = aliasId
6060
self.onNewSession = onNewSession
61-
self.stringDescription = "OSRequestFetchUser with aliasLabel: \(aliasLabel) aliasId: \(aliasId)"
61+
self.stringDescription = "<OSRequestFetchUser with aliasLabel: \(aliasLabel) aliasId: \(aliasId)>"
6262
super.init()
6363
self.method = GET
6464
_ = prepareForExecution() // sets the path property
@@ -88,7 +88,7 @@ class OSRequestFetchUser: OneSignalRequest, OSUserRequest {
8888
self.aliasLabel = aliasLabel
8989
self.aliasId = aliasId
9090
self.onNewSession = coder.decodeBool(forKey: "onNewSession")
91-
self.stringDescription = "OSRequestFetchUser with aliasLabel: \(aliasLabel) aliasId: \(aliasId)"
91+
self.stringDescription = "<OSRequestFetchUser with aliasLabel: \(aliasLabel) aliasId: \(aliasId)>"
9292
super.init()
9393
self.method = HTTPMethod(rawValue: rawMethod)
9494
self.timestamp = timestamp

iOS_SDK/OneSignalSDK/OneSignalUser/Source/Requests/OSRequestUpdateProperties.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class OSRequestUpdateProperties: OneSignalRequest, OSUserRequest {
5454

5555
init(properties: [String: Any], deltas: [String: Any]?, refreshDeviceMetadata: Bool?, identityModel: OSIdentityModel) {
5656
self.identityModel = identityModel
57-
self.stringDescription = "<OSRequestUpdateProperties with properties: \(properties) deltas: \(String(describing: deltas)) refreshDeviceMetadata: \(String(describing: refreshDeviceMetadata))>"
57+
self.stringDescription = "<OSRequestUpdateProperties with properties: \(properties) deltas: \(String(describing: deltas)) refreshDeviceMetadata: \(refreshDeviceMetadata ?? false)>"
5858
super.init()
5959

6060
var propertiesObject = properties

0 commit comments

Comments
 (0)