package com.adealink.weparty.profile.edit.data

import com.adealink.frame.aab.util.getCompatString
import com.adealink.weparty.commonui.recycleview.diffutil.BaseListItemData
import com.adealink.weparty.module.image.data.PhotoData
import com.adealink.weparty.module.image.data.VideoData
import com.adealink.weparty.profile.R

sealed class BaseMediaItemData : BaseListItemData {
    fun getPhotoDesc(position: Int): String {
        return when (position) {
            0 -> getCompatString(R.string.profile_edit_photo_wall_tips_1)
            1 -> getCompatString(R.string.profile_edit_photo_wall_tips_2)
            2 -> getCompatString(R.string.profile_edit_photo_wall_tips_3)
            3 -> getCompatString(R.string.profile_edit_photo_wall_tips_4)
            4 -> getCompatString(R.string.profile_edit_photo_wall_tips_5)
            5 -> getCompatString(R.string.profile_edit_photo_wall_tips_6)
            6 -> getCompatString(R.string.profile_edit_photo_wall_tips_7)
            7 -> getCompatString(R.string.profile_edit_photo_wall_tips_8)
            8 -> getCompatString(R.string.profile_edit_photo_wall_tips_9)
            else -> getCompatString(R.string.profile_edit_photo_wall_tips_1)
        }
    }
}

object AddPhotoItemData : BaseMediaItemData()

data class PhotoItemData(
    val data: PhotoData,
) : BaseMediaItemData()

data class VideoItemData(
    val data: VideoData,
) : BaseMediaItemData()