We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a391ae commit 1b35370Copy full SHA for 1b35370
src/main/kotlin/com/adamratzman/spotify/utils/SpotifyUris.kt
@@ -37,6 +37,11 @@ sealed class SpotifyUri(input: String, type: String) {
37
this.id = it.remove(type)
38
}
39
40
+
41
+ override fun equals(other: Any?): Boolean {
42
+ val spotifyUri = other as? SpotifyUri ?: return false
43
+ return spotifyUri.uri == this.uri
44
+ }
45
46
47
/**
@@ -77,4 +82,4 @@ class UserURI(input: String) : SpotifyUri(input, "user")
77
82
* @property uri retrieve this URI as a string
78
83
* @property id representation of this uri as an id
79
84
*/
80
-class PlaylistURI(input: String) : SpotifyUri(input, "playlist")
85
+class PlaylistURI(input: String) : SpotifyUri(input, "playlist")
0 commit comments