Skip to content

Commit b1b4d99

Browse files
committed
[nit] add note about OutcomeEventParams.timestamp
* When an outcome is created, its `timestamp` should start out as zero. * When the outcome request is sent and fails, the SDK will save and retry the outcome, then it will save the current `timestamp` for future sending
1 parent 97a2bce commit b1b4d99

File tree

1 file changed

+1
-1
lines changed
  • OneSignalSDK/onesignal/core/src/main/java/com/onesignal/session/internal/outcomes/impl

1 file changed

+1
-1
lines changed

OneSignalSDK/onesignal/core/src/main/java/com/onesignal/session/internal/outcomes/impl/OutcomeEventParams.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal class OutcomeEventParams constructor(
88
val outcomeSource: OutcomeSource?, // This field is optional
99
var weight: Float, // This field is optional.
1010
var sessionTime: Long, // This field is optional
11-
var timestamp: Long,
11+
var timestamp: Long, // This should start out as zero
1212
) {
1313
@Throws(JSONException::class)
1414
fun toJSONObject(): JSONObject {

0 commit comments

Comments
 (0)