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
Identifier uniquely determining type of the object.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
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods 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 CONSTRUCTORIdentifier uniquely determining type of the object.- 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
- 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 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.
-
Audio
Describes an audio file. Audio is usually in MP3 or M4A format.- Parameters:
input
- Serialized input- Throws:
IOException
- the deserialization failed
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-