Skip to content

Commit 64da749

Browse files
committed
add SpotifyUri#toString
1 parent 5e34155 commit 64da749

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/commonMain/kotlin/com.adamratzman.spotify/models/SpotifyUris.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ sealed class SpotifyUri(val input: String, val type: UriType) {
6969
return result
7070
}
7171

72+
override fun toString(): String {
73+
return "${this::class.simpleName}($uri)"
74+
}
75+
7276
enum class UriType(private val typeStr: String) {
7377
ALBUM("album"),
7478
ARTIST("artist"),

0 commit comments

Comments
 (0)