java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Audio
- Enclosing class:
- TdApi
Describes an audio file. Audio is
usually in MP3 or M4A format.
-
Field Summary
Modifier and TypeFieldDescriptionThe minithumbnail of the album cover; may be null.The thumbnail of the album cover in JPEG format; as defined by the sender.File containing the audio.static final int
int
Duration of the audio, in seconds; as defined by the sender.Album cover variants to use if the downloaded audio file contains no album cover.Original name of the file; as defined by the sender.The MIME type of the file; as defined by the sender.Performer of the audio; as defined by the sender.Title of the audio; as defined by the sender. -
Constructor Summary
ConstructorDescriptionAudio()
Describes an audio file.Audio
(int duration, String title, String performer, String fileName, String mimeType, TdApi.Minithumbnail albumCoverMinithumbnail, TdApi.Thumbnail albumCoverThumbnail, TdApi.Thumbnail[] externalAlbumCovers, TdApi.File audio) Describes an audio file.Describes an audio file. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
duration
public int durationDuration 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 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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
Audio
public Audio()Describes an audio file. Audio is usually in MP3 or M4A format. -
Audio
public Audio(int duration, String title, String performer, String fileName, String mimeType, TdApi.Minithumbnail albumCoverMinithumbnail, TdApi.Thumbnail albumCoverThumbnail, TdApi.Thumbnail[] externalAlbumCovers, TdApi.File audio) Describes an audio file. Audio is usually in MP3 or M4A format.- Parameters:
duration
- int Duration of the audio, in seconds; as defined by the sender.title
- String Title of the audio; as defined by the sender.performer
- String Performer of the audio; as defined by the sender.fileName
- String Original name of the file; as defined by the sender.mimeType
- String The MIME type of the file; as defined by the sender.albumCoverMinithumbnail
- Minithumbnail The minithumbnail of the album cover; may be null.albumCoverThumbnail
- Thumbnail 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 audio file; may be null.externalAlbumCovers
- Thumbnail[] Album cover variants to use if the downloaded audio file contains no album cover. Provided thumbnail dimensions are approximate.audio
- File File containing the audio.
-
Audio
Describes an audio file. Audio is usually in MP3 or M4A format.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-