Module tdlight.api

Class TdApi.NotificationSound

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.NotificationSound
Enclosing class:
TdApi

public static final class TdApi.NotificationSound extends TdApi.Object
Describes a notification sound in MP3 format.
  • Field Details

    • id

      public long id
      Unique identifier of the notification sound.
    • duration

      public int duration
      Duration of the sound, in seconds.
    • date

      public int date
      Point in time (Unix timestamp) when the sound was created.
    • title

      public String title
      Title of the notification sound.
    • data

      public String data
      Arbitrary data, defined while the sound was uploaded.
    • sound

      public TdApi.File sound
      File containing the sound.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • NotificationSound

      public NotificationSound()
      Describes a notification sound in MP3 format.
    • NotificationSound

      public NotificationSound(long id, int duration, int date, String title, String data, TdApi.File sound)
      Describes a notification sound in MP3 format.
      Parameters:
      id - long Unique identifier of the notification sound.
      duration - int Duration of the sound, in seconds.
      date - int Point in time (Unix timestamp) when the sound was created.
      title - String Title of the notification sound.
      data - String Arbitrary data, defined while the sound was uploaded.
      sound - File File containing the sound.
    • NotificationSound

      public NotificationSound(DataInput input) throws IOException
      Describes a notification sound in MP3 format.
      Throws:
      IOException
  • Method Details