-
public final class ImpressionDataData class for storing impression tracking information that can be manually serialized for WorkManager without external dependencies.
This class handles the conversion between Kotlin data types and WorkManager's Data format, ensuring reliable persistence of impression tracking data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classImpressionData.Companion
-
Method Summary
Modifier and Type Method Description final StringgetUclid()final StringgetCliUbid()final IntegergetPosition()final LonggetTimestamp()final IntegergetAttemptCount()final IntegergetMaxRetries()final DatatoWorkData()Converts this ImpressionData to WorkManager Data format. final ImpressionDataincrementAttempt()Creates a new ImpressionData with incremented attempt count. final BooleanshouldRetry()Checks if this impression should be retried based on attempt count. -
-
Method Detail
-
getCliUbid
final String getCliUbid()
-
getPosition
final Integer getPosition()
-
getTimestamp
final Long getTimestamp()
-
getAttemptCount
final Integer getAttemptCount()
-
getMaxRetries
final Integer getMaxRetries()
-
toWorkData
final Data toWorkData()
Converts this ImpressionData to WorkManager Data format. Uses WorkManager's built-in Data.Builder for type-safe serialization.
-
incrementAttempt
final ImpressionData incrementAttempt()
Creates a new ImpressionData with incremented attempt count. Used for retry logic in WorkManager.
-
shouldRetry
final Boolean shouldRetry()
Checks if this impression should be retried based on attempt count.
-
-
-
-