-
public final class VideoActionDataData class for storing video action 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 video action tracking data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classVideoActionData.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringuclidprivate final StringcliUbidprivate final VideoActionTypeactionTypeprivate final FloatvideoViewSecprivate final Integerpositionprivate final Longtimestampprivate final IntegerattemptCountprivate final IntegermaxRetries
-
Constructor Summary
Constructors Constructor Description VideoActionData(String uclid, String cliUbid, VideoActionType actionType, Float videoViewSec, Integer position, Long timestamp, Integer attemptCount, Integer maxRetries)
-
Method Summary
Modifier and Type Method Description final StringgetUclid()final StringgetCliUbid()final VideoActionTypegetActionType()final FloatgetVideoViewSec()final IntegergetPosition()final LonggetTimestamp()final IntegergetAttemptCount()final IntegergetMaxRetries()final DatatoWorkData()Converts this VideoActionData to WorkManager Data format. final VideoActionDataincrementAttempt()Creates a new VideoActionData with incremented attempt count. final BooleanshouldRetry()Checks if this video action should be retried based on attempt count. -
-
Method Detail
-
getCliUbid
final String getCliUbid()
-
getActionType
final VideoActionType getActionType()
-
getVideoViewSec
final Float getVideoViewSec()
-
getPosition
final Integer getPosition()
-
getTimestamp
final Long getTimestamp()
-
getAttemptCount
final Integer getAttemptCount()
-
getMaxRetries
final Integer getMaxRetries()
-
toWorkData
final Data toWorkData()
Converts this VideoActionData to WorkManager Data format.
-
incrementAttempt
final VideoActionData incrementAttempt()
Creates a new VideoActionData with incremented attempt count.
-
shouldRetry
final Boolean shouldRetry()
Checks if this video action should be retried based on attempt count.
-
-
-
-