package com.aiosman.ravenow.ui.index.tabs.moment.tabs.shorts

import com.aiosman.ravenow.entity.MomentLoaderExtraArgs
import com.aiosman.ravenow.ui.index.tabs.moment.BaseMomentModel
import org.greenrobot.eventbus.EventBus

object ShortVideoViewModel : BaseMomentModel() {
    init {
        EventBus.getDefault().register(this)
    }
    
    override fun extraArgs(): MomentLoaderExtraArgs {
        return MomentLoaderExtraArgs(explore = true, videoOnly = true)
    }
    
    // 获取包含视频的动态列表
    fun getVideoMoments(): List<com.aiosman.ravenow.entity.MomentEntity> {
        return moments.filter { it.videos != null && it.videos.isNotEmpty() }
    }
}

