net.bjoernpetersen.musicbot.api.player.Song.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of musicbot Show documentation
Show all versions of musicbot Show documentation
Core library of MusicBot, which plays music from various providers.
package net.bjoernpetersen.musicbot.api.player
import net.bjoernpetersen.musicbot.api.plugin.NamedPlugin
import net.bjoernpetersen.musicbot.spi.plugin.Provider
import net.bjoernpetersen.musicbot.spi.plugin.id
data class Song private constructor(
val id: String,
val provider: NamedPlugin,
val title: String,
val description: String,
val duration: Int? = null,
val albumArtUrl: String? = null) {
@JvmOverloads
constructor(id: String,
provider: Provider,
title: String,
description: String,
duration: Int? = null,
albumArtUrl: String? = null) : this(
id = id,
provider = NamedPlugin(provider.id.qualifiedName!!,
provider.subject),
title = title,
description = description,
duration = duration,
albumArtUrl = albumArtUrl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy