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.
|
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.File audio)
Describes an audio file.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public int duration
public java.lang.String title
public java.lang.String performer
public java.lang.String fileName
public java.lang.String mimeType
@Nullable public TdApi.Minithumbnail albumCoverMinithumbnail
@Nullable public TdApi.Thumbnail albumCoverThumbnail
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.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 supposed to be extracted from the downloaded file; may be null.audio
- File containing the audio.public int getConstructor()
getConstructor
in class TdApi.Object