package com.remax.visualnovel.entity.model

import com.remax.visualnovel.widget.imageviewer.adapter.ItemType
import com.remax.visualnovel.widget.imageviewer.core.Photo


data class MyImgData(
    val viewerId: Long,
    val url: String?,
    val subsampling: Boolean = false
) : Photo {
    override fun id(): Long = viewerId
    override fun itemType(): Int {
        return when {
            subsampling -> ItemType.SUBSAMPLING
            else -> ItemType.PHOTO
        }
    }
}
