Package org.drinkless.tdlib
Class TdApi.ListenToAudio
- Enclosing class:
TdApi
Informs TDLib that an audio was listened by the user.
Returns Ok
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionintIdentifier of the file with an audio.static final intIdentifier uniquely determining type of the object.intDuration of the listening to the audio, in seconds. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which informs TDLib that an audio was listened by the user.ListenToAudio(int audioFileId, int duration) Creates a function, which informs TDLib that an audio was listened by the user. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
audioFileId
public int audioFileIdIdentifier of the file with an audio. -
duration
public int durationDuration of the listening to the audio, in seconds. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ListenToAudio
public ListenToAudio()Default constructor for a function, which informs TDLib that an audio was listened by the user.Returns
Ok -
ListenToAudio
public ListenToAudio(int audioFileId, int duration) Creates a function, which informs TDLib that an audio was listened by the user.Returns
Ok- Parameters:
audioFileId- Identifier of the file with an audio.duration- Duration of the listening to the audio, in seconds.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.Ok>- Returns:
- this.CONSTRUCTOR
-