package com.remax.visualnovel.entity.imbean.voice

import com.remax.visualnovel.entity.response.base.BaseVoice

/**
 * Created by HJW on 2025/8/28
 */
data class IMVoice(
    val code: String,
    var filePath: String? = null,
    var url: String? = null,
    var autoPlay: Boolean = false
) : BaseVoice() {

    override fun id(): String {
        return code
    }

    override fun url(): String {
        return url ?: ""
    }

    override fun filePathName(): String {
        return filePath ?: ""
    }

}