SpotifyPublicUser

data class SpotifyPublicUser(externalUrlsString: Map<String, String>, href: String, id: String, uri: UserUri, displayName: String?, followers: Followers, images: List<SpotifyImage>, type: String) : CoreObject

Public information about a Spotify user

Parameters

displayName

The name displayed on the user’s profile. null if not available.

followers

Information about the followers of this user.

href

A link to the Web API endpoint for this user.

id

The Spotify user ID for this user.

images

The user’s profile image.

type

The object type: “user”

Constructors

SpotifyPublicUser
Link copied to clipboard
common
fun SpotifyPublicUser(externalUrlsString: Map<String, String>, href: String, id: String, uri: UserUri, displayName: String? = null, followers: Followers = Followers(null, -1), images: List<SpotifyImage> = listOf(), type: String)
The name displayed on the user’s profile.

Functions

component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String
component4
Link copied to clipboard
common
operator fun component4(): UserUri
component5
Link copied to clipboard
common
operator fun component5(): String?
component6
Link copied to clipboard
common
operator fun component6(): Followers
component7
Link copied to clipboard
common
operator fun component7(): List<SpotifyImage>
component8
Link copied to clipboard
common
operator fun component8(): String
copy
Link copied to clipboard
common
fun copy(externalUrlsString: Map<String, String>, href: String, id: String, uri: UserUri, displayName: String? = null, followers: Followers = Followers(null, -1), images: List<SpotifyImage> = listOf(), type: String): SpotifyPublicUser
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
getMembersThatNeedApiInstantiation
Link copied to clipboard
common
open override fun getMembersThatNeedApiInstantiation(): List<NeedsApi?>
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

api
Link copied to clipboard
common
lateinit var api: GenericSpotifyApi
The API client associated with the request
displayName
Link copied to clipboard
common
val displayName: String? = null
The name displayed on the user’s profile.
externalUrls
Link copied to clipboard
common
val externalUrls: List<ExternalUrl>
Known external URLs for this object
followers
Link copied to clipboard
common
val followers: Followers
Information about the followers of this user.
href
Link copied to clipboard
common
open override val href: String
A link to the Web API endpoint for this user.
id
Link copied to clipboard
common
open override val id: String
The Spotify user ID for this user.
images
Link copied to clipboard
common
val images: List<SpotifyImage>
The user’s profile image.
type
Link copied to clipboard
common
val type: String
The object type: “user”
uri
Link copied to clipboard
common
open override val uri: UserUri
The URI associated with the object

Sources

(source)
Link copied to clipboard