All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.simbot.component.mirai.messages.cqMusic.kt Maven / Gradle / Ivy

There is a newer version: 1.11.0-1.17-Final
Show newest version
@file:Suppress("MemberVisibilityCanBePrivate", "unused")

package com.simbot.component.mirai.messages

import net.mamoe.mirai.message.data.ServiceMessage


/**
 * CQ码音乐分享获取Xml格式的卡片分享
 */
@Deprecated("未完成")
interface CqMusicXml {
    val serviceMessage: ServiceMessage
}


/**
 * CQ码格式的音乐分享
 *
 * @param type 音乐类型
 * @param
 *
 */
//abstract class CqMusic(val type: String, val id: Long, val style: String? = null)

/**
 * type = qq
 */
@Deprecated("未完成")
internal class MusicQQ(id: String) : CqMusicXml {

    companion object Xml {
        fun toXml(songId: String): String {
            return """
                
                
                    
                        
                    
                
            """.trimIndent()
        }
    }

    private val qqMusicXml: ServiceMessage

    init {
        qqMusicXml = ServiceMessage(2, toXml(id))
//        qqMusicXml = buildXmlMessage(2) {
//            action = "web"
////            brief = "[分享] $title"
//
//
//        }
    }


    override val serviceMessage: ServiceMessage = qqMusicXml


}














© 2015 - 2025 Weber Informatics LLC | Privacy Policy