package com.example.util.simpletimetracker.feature_base_adapter.statistics

import androidx.annotation.ColorInt
import com.example.util.simpletimetracker.feature_base_adapter.ViewHolderType
import com.example.util.simpletimetracker.feature_views.viewData.RecordTypeIcon

data class StatisticsViewData(
    val id: Long,
    val name: String,
    val duration: String,
    val percent: String,
    @ColorInt val color: Int,
    val icon: RecordTypeIcon?,
    val transitionName: String,
) : ViewHolderType {

    override fun getUniqueId(): Long = id

    override fun isValidType(other: ViewHolderType): Boolean = other is StatisticsViewData
}