Package org.drinkless.tdlib
Class TdApi.Audio
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Audio
-
- Enclosing class:
- TdApi
public static class TdApi.Audio extends TdApi.Object
Describes an audio file. Audio is usually in MP3 or M4A format.
-
-
Field Summary
Fields Modifier and Type Field Description TdApi.MinithumbnailalbumCoverMinithumbnailThe minithumbnail of the album cover; may be null.TdApi.ThumbnailalbumCoverThumbnailThe thumbnail of the album cover in JPEG format; as defined by the sender.TdApi.FileaudioFile containing the audio.static intCONSTRUCTORIdentifier uniquely determining type of the object.intdurationDuration of the audio, in seconds; as defined by the sender.StringfileNameOriginal name of the file; as defined by the sender.StringmimeTypeThe MIME type of the file; as defined by the sender.StringperformerPerformer of the audio; as defined by the sender.StringtitleTitle of the audio; as defined by the sender.
-
Constructor Summary
Constructors Constructor Description Audio()Describes an audio file.Audio(int duration, String title, String performer, String fileName, String mimeType, TdApi.Minithumbnail albumCoverMinithumbnail, TdApi.Thumbnail albumCoverThumbnail, TdApi.File audio)Describes an audio file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
duration
public int duration
Duration of the audio, in seconds; as defined by the sender.
-
title
public String title
Title of the audio; as defined by the sender.
-
performer
public String performer
Performer of the audio; as defined by the sender.
-
fileName
public String fileName
Original name of the file; as defined by the sender.
-
mimeType
public String mimeType
The MIME type of the file; as defined by the sender.
-
albumCoverMinithumbnail
public TdApi.Minithumbnail albumCoverMinithumbnail
The minithumbnail of the album cover; may be null.
-
albumCoverThumbnail
public TdApi.Thumbnail 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
public TdApi.File audio
File containing the audio.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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.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 file; may be null.audio- File containing the audio.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-