package com.yidianling.muse.moduler.service

import android.app.Activity
import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.ydl.muse.api.IMuseService
import com.yidianling.muse.activity.ChooseMusicActivity

@Route(path = "/muse/MuseService")
class MuseImpl : IMuseService {

    override fun init(context: Context?) {
    }

    override fun switchSound(
        activity: Activity,
        mediaId: Int,
        meditationId: Long,
        meditationType: Int,
        businessType: Int,
        buried: String?,
        mediaUrl: String?,
        mediaCoverUrl: String?,
        title: String?,
        desc: String?,
        status: Int
    ) {
        (activity as ChooseMusicActivity).switchSound(
            mediaId, meditationId, meditationType,
            businessType, buried, mediaUrl, mediaCoverUrl, title, desc, status
        )
    }

}