Module tdlight.api

Class TdApi.ScopeNotificationSettings

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

public static final class TdApi.ScopeNotificationSettings extends TdApi.Object
Contains information about notification settings for several chats.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    boolean
    True, if notifications for messages with mentions will be created as for an ordinary unread message.
    boolean
    True, if notifications for incoming pinned messages will be created as for an ordinary unread message.
    int
    Time left before notifications will be unmuted, in seconds.
    boolean
    True, if story notifications are received without sound.
    boolean
    True, if message content must be displayed in notifications.
    boolean
    True, if the sender of stories must be displayed in notifications.
    long
    Identifier of the notification sound to be played; 0 if sound is disabled.
    long
    Identifier of the notification sound to be played for stories; 0 if sound is disabled.
    boolean
    If true, muteStories is ignored and stories are unmuted only for the first 5 chats from topChatCategoryUsers.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Contains information about notification settings for several chats.
    ScopeNotificationSettings(int muteFor, long soundId, boolean showPreview, boolean useDefaultMuteStories, boolean muteStories, long storySoundId, boolean showStorySender, boolean disablePinnedMessageNotifications, boolean disableMentionNotifications)
    Contains information about notification settings for several chats.
    Contains information about notification settings for several chats.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Returns an identifier uniquely determining type of the object.
    int
     
    void
    Serialize the TDLib class

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize, toString

    Methods inherited from class java.lang.Object

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

    • muteFor

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

      public long soundId
      Identifier of the notification sound to be played; 0 if sound is disabled.
    • showPreview

      public boolean showPreview
      True, if message content must be displayed in notifications.
    • useDefaultMuteStories

      public boolean useDefaultMuteStories
      If true, muteStories is ignored and stories are unmuted only for the first 5 chats from topChatCategoryUsers.
    • muteStories

      public boolean muteStories
      True, if story notifications are received without sound.
    • storySoundId

      public long storySoundId
      Identifier of the notification sound to be played for stories; 0 if sound is disabled.
    • showStorySender

      public boolean showStorySender
      True, if the sender of stories must be displayed in notifications.
    • disablePinnedMessageNotifications

      public boolean disablePinnedMessageNotifications
      True, if notifications for incoming pinned messages will be created as for an ordinary unread message.
    • disableMentionNotifications

      public boolean disableMentionNotifications
      True, if notifications for messages with mentions will be created as for an ordinary unread message.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • ScopeNotificationSettings

      public ScopeNotificationSettings()
      Contains information about notification settings for several chats.
    • ScopeNotificationSettings

      public ScopeNotificationSettings(int muteFor, long soundId, boolean showPreview, boolean useDefaultMuteStories, boolean muteStories, long storySoundId, boolean showStorySender, boolean disablePinnedMessageNotifications, boolean disableMentionNotifications)
      Contains information about notification settings for several chats.
      Parameters:
      muteFor - Time left before notifications will be unmuted, in seconds.
      soundId - Identifier of the notification sound to be played; 0 if sound is disabled.
      showPreview - True, if message content must be displayed in notifications.
      useDefaultMuteStories - If true, muteStories is ignored and stories are unmuted only for the first 5 chats from topChatCategoryUsers.
      muteStories - True, if story notifications are received without sound.
      storySoundId - Identifier of the notification sound to be played for stories; 0 if sound is disabled.
      showStorySender - True, if the sender of stories must be displayed in notifications.
      disablePinnedMessageNotifications - True, if notifications for incoming pinned messages will be created as for an ordinary unread message.
      disableMentionNotifications - True, if notifications for messages with mentions will be created as for an ordinary unread message.
    • ScopeNotificationSettings

      public ScopeNotificationSettings(DataInput input) throws IOException
      Contains information about notification settings for several chats.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object