Class TdApi.ListenToAudio

Enclosing class:
TdApi

public static class TdApi.ListenToAudio extends TdApi.Function<TdApi.Ok>
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

    Fields
    Modifier and Type
    Field
    Description
    int
    Identifier of the file with an audio.
    static final int
    Identifier uniquely determining type of the object.
    int
    Duration of the listening to the audio, in seconds.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default 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 Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • audioFileId

      public int audioFileId
      Identifier of the file with an audio.
    • duration

      public int duration
      Duration of the listening to the audio, in seconds.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR