Skip to content

Commit 9ef9e63

Browse files
committed
lint, add releaseDate object
1 parent 1d9d4f4 commit 9ef9e63

File tree

14 files changed

+44
-26
lines changed

14 files changed

+44
-26
lines changed

samples/src/main/kotlin/public/AlbumApiSample.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ fun main() {
1010
System.getenv("SPOTIFY_CLIENT_SECRET")
1111
).build()
1212

13-
// get album "Kids in Love" by the Mowgli's
13+
// get album "Kids in Love" by the Mowgli's release date
1414
println(api.albums.getAlbum("spotify:album:4M2p2BIRHIeBu8Ew9IBQ0s").complete()!!.releaseDate)
1515

16+
//
1617
}

samples/src/main/kotlin/public/ArtistApiSample.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ fun main() {
99
System.getenv("SPOTIFY_CLIENT_ID"),
1010
System.getenv("SPOTIFY_CLIENT_SECRET")
1111
).build()
12-
1312
}

samples/src/main/kotlin/public/FollowingApiSample.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ fun main() {
99
System.getenv("SPOTIFY_CLIENT_ID"),
1010
System.getenv("SPOTIFY_CLIENT_SECRET")
1111
).build()
12-
1312
}

samples/src/main/kotlin/public/PlaylistApiSample.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ fun main() {
99
System.getenv("SPOTIFY_CLIENT_ID"),
1010
System.getenv("SPOTIFY_CLIENT_SECRET")
1111
).build()
12-
1312
}

samples/src/main/kotlin/public/SearchApiSample.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ fun main() {
99
System.getenv("SPOTIFY_CLIENT_ID"),
1010
System.getenv("SPOTIFY_CLIENT_SECRET")
1111
).build()
12-
1312
}

samples/src/main/kotlin/public/TrackApiSample.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ fun main() {
99
System.getenv("SPOTIFY_CLIENT_ID"),
1010
System.getenv("SPOTIFY_CLIENT_SECRET")
1111
).build()
12-
1312
}

samples/src/main/kotlin/public/UserApiSample.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ fun main() {
99
System.getenv("SPOTIFY_CLIENT_ID"),
1010
System.getenv("SPOTIFY_CLIENT_SECRET")
1111
).build()
12-
1312
}

src/commonMain/kotlin/com.adamratzman.spotify/SpotifyRestAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Spotify Web API - Kotlin Wrapper; MIT License, 2019; Original author: Adam Ratzman */
1+
/* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2020; Original author: Adam Ratzman */
22
package com.adamratzman.spotify
33

44
import com.adamratzman.spotify.models.AbstractPagingObject

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/public/BrowseApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import com.adamratzman.spotify.models.serialization.toPagingObject
2525
import com.adamratzman.spotify.utils.Locale
2626
import com.adamratzman.spotify.utils.Market
2727
import com.adamratzman.spotify.utils.formatDate
28+
import kotlin.reflect.KClass
2829
import kotlinx.serialization.list
2930
import kotlinx.serialization.serializer
30-
import kotlin.reflect.KClass
3131

3232
@Deprecated("Endpoint name has been updated for kotlin convention consistency", ReplaceWith("BrowseApi"))
3333
typealias BrowseAPI = BrowseApi

src/commonMain/kotlin/com.adamratzman.spotify/endpoints/public/PlaylistApi.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ open class PlaylistApi(api: SpotifyApi<*, *>) : SpotifyEndpoint(api) {
6969
}
7070

7171
@Deprecated("Renamed `getUserPlaylists`", ReplaceWith("getUserPlaylists"))
72-
fun getPlaylists(user: String,
73-
limit: Int? = null,
74-
offset: Int? = null) = getUserPlaylists(user, limit, offset)
72+
fun getPlaylists(
73+
user: String,
74+
limit: Int? = null,
75+
offset: Int? = null
76+
) = getUserPlaylists(user, limit, offset)
7577

7678
/**
7779
* Get a playlist owned by a Spotify user.

0 commit comments

Comments
 (0)