-
public final class VideoProgressDataData class for storing video progress 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 progress tracking data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classVideoProgressData.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringuclidprivate final StringcliUbidprivate final FloatvideoViewSecprivate final FloatvideoDurationSecprivate final Integerpositionprivate final Longtimestampprivate final IntegerattemptCountprivate final IntegermaxRetries
-
Method Summary
Modifier and Type Method Description final StringgetUclid()final StringgetCliUbid()final FloatgetVideoViewSec()final FloatgetVideoDurationSec()final IntegergetPosition()final LonggetTimestamp()final IntegergetAttemptCount()final IntegergetMaxRetries()final DatatoWorkData()Converts this VideoProgressData to WorkManager Data format. final VideoProgressDataincrementAttempt()Creates a new VideoProgressData with incremented attempt count. final BooleanshouldRetry()Checks if this video progress should be retried based on attempt count. -
-
Method Detail
-
getCliUbid
final String getCliUbid()
-
getVideoViewSec
final Float getVideoViewSec()
-
getVideoDurationSec
final Float getVideoDurationSec()
-
getPosition
final Integer getPosition()
-
getTimestamp
final Long getTimestamp()
-
getAttemptCount
final Integer getAttemptCount()
-
getMaxRetries
final Integer getMaxRetries()
-
toWorkData
final Data toWorkData()
Converts this VideoProgressData to WorkManager Data format.
-
incrementAttempt
final VideoProgressData incrementAttempt()
Creates a new VideoProgressData with incremented attempt count.
-
shouldRetry
final Boolean shouldRetry()
Checks if this video progress should be retried based on attempt count.
-
-
-
-