|
1 | 1 | /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2020; Original author: Adam Ratzman */
|
2 | 2 | package com.adamratzman.spotify.models
|
3 | 3 |
|
| 4 | +import com.adamratzman.spotify.SpotifyScope |
4 | 5 | import kotlinx.serialization.SerialName
|
5 | 6 | import kotlinx.serialization.Serializable
|
6 | 7 |
|
7 | 8 | /**
|
8 | 9 | * Private information about a Spotify user. Each field may require a specific scope.
|
9 | 10 | *
|
10 | 11 | * @property birthdate The user’s date-of-birth. This field is only available when the current user
|
11 |
| - * has granted access to the user-read-birthdate scope. |
| 12 | + * has granted access to the [SpotifyScope.USER_READ_BIRTHDATE] scope. |
12 | 13 | * @property country The country of the user, as set in the user’s account profile. An ISO 3166-1 alpha-2
|
13 |
| - * country code. This field is only available when the current user has granted access to the user-read-private scope. |
| 14 | + * country code. This field is only available when the current user has granted access to the [SpotifyScope.USER_READ_PRIVATE] scope. |
14 | 15 | * @property displayName The name displayed on the user’s profile. null if not available.
|
15 | 16 | * @property email The user’s email address, as entered by the user when creating their account. Important! This email
|
16 | 17 | * address is unverified; there is no proof that it actually belongs to the user. This field is only
|
17 |
| - * available when the current user has granted access to the user-read-email scope. |
| 18 | + * available when the current user has granted access to the [SpotifyScope.USER_READ_EMAIL] scope. |
18 | 19 | * @property followers Information about the followers of the user.
|
19 | 20 | * @property href A link to the Web API endpoint for this user.
|
20 | 21 | * @property id The Spotify user ID for the user
|
21 | 22 | * @property images The user’s profile image.
|
22 | 23 | * @property product The user’s Spotify subscription level: “premium”, “free”, etc.
|
23 | 24 | * (The subscription level “open” can be considered the same as “free”.) This field is only available when the
|
24 |
| - * current user has granted access to the user-read-private scope. |
| 25 | + * current user has granted access to the [SpotifyScope.USER_READ_PRIVATE] scope. |
25 | 26 | * @property type The object type: “user”
|
26 | 27 | */
|
27 | 28 | @Serializable
|
|
0 commit comments