toggle menu
yandex-music-api
0.1.0-dev6
common
switch theme
search in API
api-core
/
track.model.downloadInfo
/
DownloadInfo
Download
Info
@
Serializable
data
class
DownloadInfo
(
val
codec
:
Codec
,
val
bitrateInKbps
:
Int
,
val
gain
:
Boolean
,
val
preview
:
Boolean
,
val
downloadInfoUrl
:
String
,
val
direct
:
Boolean
,
val
container
:
Container
?
=
null
)
(
source
)
Members
Constructors
Download
Info
Link copied to clipboard
constructor
(
codec
:
Codec
,
bitrateInKbps
:
Int
,
gain
:
Boolean
,
preview
:
Boolean
,
downloadInfoUrl
:
String
,
direct
:
Boolean
,
container
:
Container
?
=
null
)
Properties
bitrate
In
Kbps
Link copied to clipboard
val
bitrateInKbps
:
Int
codec
Link copied to clipboard
val
codec
:
Codec
container
Link copied to clipboard
val
container
:
Container
?
=
null
direct
Link copied to clipboard
val
direct
:
Boolean
direct
Link
Link copied to clipboard
var
directLink
:
String
?
download
Info
Url
Link copied to clipboard
val
downloadInfoUrl
:
String
gain
Link copied to clipboard
val
gain
:
Boolean
preview
Link copied to clipboard
val
preview
:
Boolean
Functions
download
Link copied to clipboard
suspend
fun
download
(
client
:
YaMusicApiClient
)
:
ByteArray
fetch
Direct
Link
Link copied to clipboard
suspend
fun
fetchDirectLink
(
client
:
YaMusicApiClient
)
:
String
?