package kr.co.vividnext.sodalive.audio_content

import androidx.annotation.Keep
import io.objectbox.annotation.Entity
import io.objectbox.annotation.Id
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale

@Entity
@Keep
data class PlaybackTracking(
    @Id
    var id: Long = 0,
    var contentId: Long,
    var totalDuration: Int,
    var startPosition: Int,
    var isFree: Boolean,
    var isPreview: Boolean,
    var endPosition: Int? = null,
    var playDateTime: String = SimpleDateFormat(
        "yyyy-MM-dd HH:mm:ss",
        Locale.getDefault()
    ).format(Date())
)
