Skip to content

Commit 73ce821

Browse files
committed
Remove no longer used struct OSPropertiesDeltas
* Also noted that we enqueue only one Properties Delta change at a time - for example, one of session_time, session_count, or purchases - so the struct OSPropertiesDeltas is not needed. It was always being created with only 1 property and the rest being nil. * Now that these properties deltas are going to be combined together, we are not using this struct anymore anyways.
1 parent ce80822 commit 73ce821

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

iOS_SDK/OneSignalSDK/OneSignalUser/Source/OSPropertiesModel.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,6 @@ import Foundation
2929
import OneSignalOSCore
3030
import OneSignalCore
3131

32-
struct OSPropertiesDeltas {
33-
let sessionTime: NSNumber?
34-
let sessionCount: NSNumber?
35-
let amountSpent: NSNumber?
36-
let purchases: [[String: AnyObject]]?
37-
38-
func jsonRepresentation() -> [String: Any] {
39-
var deltas = [String: Any]()
40-
deltas["session_count"] = sessionCount
41-
deltas["session_time"] = sessionTime?.intValue // server expects an int
42-
deltas["amountSpent"] = amountSpent
43-
deltas["purchases"] = purchases
44-
return deltas
45-
}
46-
}
47-
4832
// Both lat and long must exist to be accepted by the server
4933
class OSLocationPoint: NSObject, NSCoding {
5034
let lat: Float

0 commit comments

Comments
 (0)