Skip to content

Commit f41949a

Browse files
committed
fix unresolved properties in docs, expose SimpleEpisode.name
Signed-off-by: Adam Ratzman <[email protected]>
1 parent a442a49 commit f41949a

20 files changed

+349
-363
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repositories {
3737
jcenter()
3838
}
3939
40-
implementation("com.adamratzman:spotify-api-kotlin-core:3.4.0")
40+
implementation("com.adamratzman:spotify-api-kotlin-core:3.4.01")
4141
```
4242

4343
Note that images and profiles are not supported on the Kotlin/JS target.

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ buildscript {
3232
}
3333

3434
group = "com.adamratzman"
35-
version = "3.4.0"
35+
version = "3.4.01"
3636

3737
tasks.withType<Test> {
3838
this.testLogging {

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ public enum class AuthorizationType {
500500
/**
501501
* Spotify Api builder interface
502502
*
503-
* @property T The type of [SpotifyApi] to be built
504-
* @property B The associated Api builder for [T]
503+
* @param T The type of [SpotifyApi] to be built
504+
* @param B The associated Api builder for [T]
505505
*/
506506
public interface ISpotifyApiBuilder<T : SpotifyApi<T, B>, B : ISpotifyApiBuilder<T, B>> {
507507
/**
@@ -811,14 +811,14 @@ public class SpotifyCredentials {
811811
/**
812812
* User-defined authorization parameters
813813
*
814-
* @property authorizationCode Only available when building [SpotifyClientApi]. Spotify auth code
815-
* @property token Build the API using an existing token. If you're building [SpotifyClientApi], this
814+
* @param authorizationCode Only available when building [SpotifyClientApi]. Spotify auth code
815+
* @param token Build the API using an existing token. If you're building [SpotifyClientApi], this
816816
* will be your **access** token. If you're building [SpotifyApi], it will be your **refresh** token
817-
* @property tokenString Build the API using an existing token (string). If you're building [SpotifyClientApi], this
817+
* @param tokenString Build the API using an existing token (string). If you're building [SpotifyClientApi], this
818818
* will be your **access** token. If you're building [SpotifyApi], it will be your **refresh** token. There is a *very*
819819
* limited time constraint on these before the API automatically refreshes them
820-
* @property refreshTokenString Refresh token, given as a string, to be exchanged to Spotify for a new token
821-
* @property pkceCodeVerifier The code verifier generated that the client authenticated with (using its code challenge)
820+
* @param refreshTokenString Refresh token, given as a string, to be exchanged to Spotify for a new token
821+
* @param pkceCodeVerifier The code verifier generated that the client authenticated with (using its code challenge)
822822
*/
823823
public class SpotifyUserAuthorization(
824824
public var authorizationCode: String? = null,

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,16 @@ import kotlinx.serialization.json.Json
4343
* functionality and information between the [SpotifyClientApi] and [SpotifyAppApi]
4444
* implementations of the API
4545
*
46-
* @property clientId The application client id found on the application [dashboard](https://developer.spotify.com/dashboard/applications)
47-
* @property clientSecret The application client secret found on the application [dashboard](https://developer.spotify.com/dashboard/applications)
48-
* @property token The access token associated with this API instance
46+
* @param clientId The application client id found on the application [dashboard](https://developer.spotify.com/dashboard/applications)
47+
* @param clientSecret The application client secret found on the application [dashboard](https://developer.spotify.com/dashboard/applications)
48+
* @param token The access token associated with this API instance
49+
* @param spotifyApiOptions Configurable Spotify API options.
4950
*
5051
* @property search Provides access to the Spotify [search endpoint](https://developer.spotify.com/documentation/web-api/reference/search/search/)
5152
* @property albums Provides access to Spotify [album endpoints](https://developer.spotify.com/documentation/web-api/reference/albums/)
5253
* @property browse Provides access to Spotify [browse endpoints](https://developer.spotify.com/documentation/web-api/reference/browse/)
5354
* @property artists Provides access to Spotify [artist endpoints](https://developer.spotify.com/documentation/web-api/reference/artists/)
5455
* @property tracks Provides access to Spotify [track endpoints](https://developer.spotify.com/documentation/web-api/reference/tracks/)
55-
*
56-
* @property spotifyApiOptions Configurable Spotify API options.
5756
*/
5857
public sealed class SpotifyApi<T : SpotifyApi<T, B>, B : ISpotifyApiBuilder<T, B>>(
5958
public val clientId: String?,

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

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,26 @@ import kotlinx.serialization.Serializable
99
/**
1010
* Simplified Album object that can be used to retrieve a full [Album]
1111
*
12-
* @property href A link to the Web API endpoint providing full details of the album.
13-
* @property id The Spotify ID for the album.
14-
* @property albumGroup Optional. The field is present when getting an artist’s albums. Possible values
12+
* @param href A link to the Web API endpoint providing full details of the album.
13+
* @param id The Spotify ID for the album.
1514
* are “album”, “single”, “compilation”, “appears_on”. Compare to album_type this field represents relationship
1615
* between the artist and the album.
17-
* @property artists The artists of the album. Each artist object includes a link in href to more detailed information about the artist.
18-
* @property availableMarkets The markets in which the album is available: ISO 3166-1 alpha-2 country codes. Note
16+
* @param artists The artists of the album. Each artist object includes a link in href to more detailed information about the artist.
1917
* that an album is considered available in a market when at least 1 of its tracks is available in that market.
20-
* @property images The cover art for the album in various sizes, widest first.
21-
* @property name The name of the album. In case of an album takedown, the value may be an empty string.
22-
* @property type The object type: “album”
23-
* @property releaseDate The date the album was first released, for example 1981. Depending on the precision,
18+
* @param images The cover art for the album in various sizes, widest first.
19+
* @param name The name of the album. In case of an album takedown, the value may be an empty string.
20+
* @param type The object type: “album”
2421
* it might be shown as 1981-12 or 1981-12-15.
25-
* @property releaseDatePrecisionString The precision with which release_date value is known: year , month , or day.
26-
* @property albumType The type of the album: one of “album”, “single”, or “compilation”.
27-
* @property restrictions Part of the response when Track Relinking is applied, the original track is not available
22+
* @param releaseDatePrecisionString The precision with which release_date value is known: year , month , or day.
23+
* @param restrictions Part of the response when Track Relinking is applied, the original track is not available
2824
* in the given market, and Spotify did not have any tracks to relink it with. The track response will still contain
2925
* metadata for the original track, and a restrictions object containing the reason why the track is not available:
3026
* "restrictions" : {"reason" : "market"}
27+
*
28+
* @property albumGroup Optional. The field is present when getting an artist’s albums. Possible values
29+
* @property availableMarkets The markets in which the album is available: ISO 3166-1 alpha-2 country codes. Note
30+
* @property releaseDate The date the album was first released, for example 1981. Depending on the precision,
31+
* @property albumType The type of the album: one of “album”, “single”, or “compilation”.
3132
*/
3233
@Serializable
3334
public data class SimpleAlbum(
@@ -87,33 +88,34 @@ public enum class AlbumResultType(public val id: String) {
8788
/**
8889
* Represents an Album on Spotify
8990
*
90-
* @property albumType The type of the album: one of "album" , "single" , or "compilation".
91-
* @property artists The artists of the album. Each artist object includes a link in href to more detailed
91+
* @param artists The artists of the album. Each artist object includes a link in href to more detailed
9292
* information about the artist.
93-
* @property availableMarkets The markets in which the album is available:
9493
* ISO 3166-1 alpha-2 country codes. Note that an album is considered
9594
* available in a market when at least 1 of its tracks is available in that market.
96-
* @property copyrights The copyright statements of the album.
97-
* @property externalIds Known external IDs for the album.
98-
* @property genres A list of the genres used to classify the album. For example: "Prog Rock" ,
95+
* @param copyrights The copyright statements of the album.
96+
* @param genres A list of the genres used to classify the album. For example: "Prog Rock" ,
9997
* "Post-Grunge". (If not yet classified, the array is empty.)
100-
* @property href A link to the Web API endpoint providing full details of the album.
101-
* @property id The Spotify ID for the album.
102-
* @property images The cover art for the album in various sizes, widest first.
103-
* @property label The label for the album.
104-
* @property name The name of the album. In case of an album takedown, the value may be an empty string.
105-
* @property popularity The popularity of the album. The value will be between 0 and 100, with 100 being the most
98+
* @param href A link to the Web API endpoint providing full details of the album.
99+
* @param id The Spotify ID for the album.
100+
* @param images The cover art for the album in various sizes, widest first.
101+
* @param label The label for the album.
102+
* @param name The name of the album. In case of an album takedown, the value may be an empty string.
103+
* @param popularity The popularity of the album. The value will be between 0 and 100, with 100 being the most
106104
* popular. The popularity is calculated from the popularity of the album’s individual tracks.
107-
* @property releaseDate The date the album was first released, for example 1981. Depending on the precision,
108105
* it might be shown as 1981-12 or 1981-12-15.
109-
* @property releaseDatePrecision The precision with which release_date value is known: year , month , or day.
110-
* @property tracks The tracks of the album.
111-
* @property type The object type: “album”
112-
* @property totalTracks the total amount of tracks in this album
113-
* @property restrictions Part of the response when Track Relinking is applied, the original track is not available
106+
* @param releaseDatePrecision The precision with which release_date value is known: year , month , or day.
107+
* @param tracks The tracks of the album.
108+
* @param type The object type: “album”
109+
* @param totalTracks the total amount of tracks in this album
110+
* @param restrictions Part of the response when Track Relinking is applied, the original track is not available
114111
* in the given market, and Spotify did not have any tracks to relink it with.
115112
* The track response will still contain metadata for the original track, and a
116113
* restrictions object containing the reason why the track is not available: "restrictions" : {"reason" : "market"}
114+
*
115+
* @property releaseDate The date the album was first released, for example 1981. Depending on the precision,
116+
* @property externalIds Known external IDs for the album.
117+
* @property availableMarkets The markets in which the album is available:
118+
* @property albumType The type of the album: one of "album" , "single" , or "compilation".
117119
*/
118120
@Serializable
119121
public data class Album(
@@ -152,8 +154,7 @@ public data class Album(
152154
* Describes an album's copyright information
153155
*
154156
* @property text The copyright text for this album.
155-
* @property type The type of copyright: C = the copyright,
156-
* P = the sound recording (performance) copyright.
157+
* @property type The type of copyright: C = the copyright, P = the sound recording (performance) copyright.
157158
*/
158159
@Serializable
159160
public data class SpotifyCopyright(

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import kotlinx.serialization.Serializable
77
/**
88
* Simplified Artist object that can be used to retrieve a full [Artist]
99
*
10-
* @property href A link to the Web API endpoint providing full details of the artist.
11-
* @property id The Spotify ID for the artist.
12-
* @property name The name of the artist
13-
* @property type The object type: "artist"
10+
* @param href A link to the Web API endpoint providing full details of the artist.
11+
* @param id The Spotify ID for the artist.
12+
* @param name The name of the artist
13+
* @param type The object type: "artist"
1414
*/
1515
@Serializable
1616
public data class SimpleArtist(
@@ -31,16 +31,16 @@ public data class SimpleArtist(
3131
/**
3232
* Represents an Artist (distinct from a regular user) on Spotify
3333
*
34-
* @property followers Information about the followers of the artist.
35-
* @property genres A list of the genres the artist is associated with. For example: "Prog Rock" ,
34+
* @param followers Information about the followers of the artist.
35+
* @param genres A list of the genres the artist is associated with. For example: "Prog Rock" ,
3636
* "Post-Grunge". (If not yet classified, the array is empty.)
37-
* @property href A link to the Web API endpoint providing full details of the artist.
38-
* @property id The Spotify ID for the artist.
39-
* @property images Images of the artist in various sizes, widest first.
40-
* @property name The name of the artist
41-
* @property popularity The popularity of the artist. The value will be between 0 and 100, with 100 being the most
37+
* @param href A link to the Web API endpoint providing full details of the artist.
38+
* @param id The Spotify ID for the artist.
39+
* @param images Images of the artist in various sizes, widest first.
40+
* @param name The name of the artist
41+
* @param popularity The popularity of the artist. The value will be between 0 and 100, with 100 being the most
4242
* popular. The artist’s popularity is calculated from the popularity of all the artist’s tracks.
43-
* @property type The object type: "artist"
43+
* @param type The object type: "artist"
4444
*/
4545
@Serializable
4646
public data class Artist(

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ import kotlinx.serialization.Transient
1111
/**
1212
* Represents a Spotify Token, retrieved through instantiating a [SpotifyApi]
1313
*
14-
* @property accessToken An access token that can be provided in subsequent calls,
14+
* @param accessToken An access token that can be provided in subsequent calls,
1515
* for example to Spotify Web API services.
16-
* @property tokenType How the access token may be used: always “Bearer”.
17-
* @property expiresIn The time period (in seconds) for which the access token is valid.
18-
* @property refreshToken A token that can be sent to the Spotify Accounts service in place of an authorization code,
16+
* @param tokenType How the access token may be used: always “Bearer”.
17+
* @param expiresIn The time period (in seconds) for which the access token is valid.
18+
* @param refreshToken A token that can be sent to the Spotify Accounts service in place of an authorization code,
1919
* null if the token was created using a method that does not support token refresh
20+
*
2021
* @property scopes A list of scopes granted access for this [accessToken]. An
2122
* empty list means that the token can only be used to access public information.
2223
* @property expiresAt The time, in milliseconds, at which this Token expires

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ public data class RecommendationSeed(
4545
) : Identifiable()
4646

4747
/**
48-
* @property seeds An array of recommendation seed objects.
49-
* @property tracks An array of track object (simplified) ordered according to the parameters supplied.
48+
* @param seeds An array of recommendation seed objects.
49+
* @param tracks An array of track object (simplified) ordered according to the parameters supplied.
5050
*/
5151
@Serializable
5252
public data class RecommendationResponse(val seeds: List<RecommendationSeed>, val tracks: List<Track>)
5353

5454
/**
5555
* Spotify featured playlists (on the Browse tab)
5656
*
57-
* @property message the featured message in "Overview"
58-
* @property playlists [PagingObject] of returned items
57+
* @param message the featured message in "Overview"
58+
* @param playlists [PagingObject] of returned items
5959
*/
6060
@Serializable
6161
public data class FeaturedPlaylists(val message: String, val playlists: PagingObject<SimplePlaylist>)

0 commit comments

Comments
 (0)