Skip to content

Commit 1505d07

Browse files
author
Rodrigo Gomez Palacio
committed
Add offset, retryCount, & sessionDuration to OptionalHeaders
Motivation: support passing values as headers, add comments
1 parent 32775a0 commit 1505d07

File tree

1 file changed

+15
-0
lines changed
  • OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/http/impl

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
package com.onesignal.core.internal.http.impl
22

33
data class OptionalHeaders(
4+
/**
5+
* Used as an E-Tag
6+
*/
47
val cacheKey: String? = null,
8+
/**
9+
* Used for read your write consistency
10+
*/
11+
val rywToken: String? = null,
12+
/**
13+
* Current retry count
14+
*/
15+
val retryCount: Int? = null,
16+
/**
17+
* Used to track delay between session start and request
18+
*/
19+
val sessionDuration: Long? = null,
520
)

0 commit comments

Comments
 (0)