public static class TdApi.Audio extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
TdApi.Minithumbnail |
albumCoverMinithumbnail
The minithumbnail of the album cover; may be null.
|
TdApi.Thumbnail |
albumCoverThumbnail
The thumbnail of the album cover in JPEG format; as defined by the sender.
|
TdApi.File |
audio
File containing the audio.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
duration
Duration of the audio, in seconds; as defined by the sender.
|
TdApi.Thumbnail[] |
externalAlbumCovers
Album cover variants to use if the downloaded audio file contains no album cover.
|
java.lang.String |
fileName
Original name of the file; as defined by the sender.
|
java.lang.String |
mimeType
The MIME type of the file; as defined by the sender.
|
java.lang.String |
performer
Performer of the audio; as defined by the sender.
|
java.lang.String |
title
Title of the audio; as defined by the sender.
|
| Constructor and Description |
|---|
Audio()
Describes an audio file.
|
Audio(int duration,
java.lang.String title,
java.lang.String performer,
java.lang.String fileName,
java.lang.String mimeType,
TdApi.Minithumbnail albumCoverMinithumbnail,
TdApi.Thumbnail albumCoverThumbnail,
TdApi.Thumbnail[] externalAlbumCovers,
TdApi.File audio)
Describes an audio file.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic int duration
public java.lang.String title
public java.lang.String performer
public java.lang.String fileName
public java.lang.String mimeType
public TdApi.Minithumbnail albumCoverMinithumbnail
public TdApi.Thumbnail albumCoverThumbnail
public TdApi.Thumbnail[] externalAlbumCovers
public TdApi.File audio
public static final int CONSTRUCTOR
public Audio()
public Audio(int duration,
java.lang.String title,
java.lang.String performer,
java.lang.String fileName,
java.lang.String mimeType,
TdApi.Minithumbnail albumCoverMinithumbnail,
TdApi.Thumbnail albumCoverThumbnail,
TdApi.Thumbnail[] externalAlbumCovers,
TdApi.File audio)
duration - Duration of the audio, in seconds; as defined by the sender.title - Title of the audio; as defined by the sender.performer - Performer of the audio; as defined by the sender.fileName - Original name of the file; as defined by the sender.mimeType - The MIME type of the file; as defined by the sender.albumCoverMinithumbnail - The minithumbnail of the album cover; may be null.albumCoverThumbnail - The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail is expected to be extracted from the downloaded audio file; may be null.externalAlbumCovers - Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate.audio - File containing the audio.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object