Class TdApi.NotificationSettings

  • Enclosing class:
    TdApi

    public static class TdApi.NotificationSettings
    extends TdApi.Object
    Contains information about notification settings for a chat or several chats.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      int muteFor
      Time left before notifications will be unmuted, in seconds.
      boolean showPreview
      True, if message content should be displayed in notifications.
      java.lang.String sound
      An audio file name for notification sounds; only applies to iOS applications.
    • Constructor Summary

      Constructors 
      Constructor Description
      NotificationSettings()
      Default constructor.
      NotificationSettings​(int muteFor, java.lang.String sound, boolean showPreview)
      Constructor for initialization of all fields.
    • Field Detail

      • muteFor

        public int muteFor
        Time left before notifications will be unmuted, in seconds.
      • sound

        public java.lang.String sound
        An audio file name for notification sounds; only applies to iOS applications.
      • showPreview

        public boolean showPreview
        True, if message content should be displayed in notifications.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NotificationSettings

        public NotificationSettings()
        Default constructor.
      • NotificationSettings

        public NotificationSettings​(int muteFor,
                                    java.lang.String sound,
                                    boolean showPreview)
        Constructor for initialization of all fields.
        Parameters:
        muteFor - Time left before notifications will be unmuted, in seconds.
        sound - An audio file name for notification sounds; only applies to iOS applications.
        showPreview - True, if message content should be displayed in notifications.