java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatNotificationSettings
- Enclosing class:
- TdApi
Contains information about notification
settings for a chat or a forum topic.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
boolean
If true, notifications for messages with mentions will be created as for an ordinary unread message.boolean
If true, 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 message content must be displayed in notifications.long
Identifier of the notification sound to be played; 0 if sound is disabled.boolean
If true, disableMentionNotifications is ignored and the value for the relevant type of chat or the forum chat is used instead.boolean
If true, disablePinnedMessageNotifications is ignored and the value for the relevant type of chat or the forum chat is used instead.boolean
If true, muteFor is ignored and the value for the relevant type of chat or the forum chat is used instead.boolean
If true, showPreview is ignored and the value for the relevant type of chat or the forum chat is used instead.boolean
If true, the value for the relevant type of chat or the forum chat is used instead of soundId. -
Constructor Summary
ConstructorDescriptionContains information about notification settings for a chat or a forum topic.ChatNotificationSettings
(boolean useDefaultMuteFor, int muteFor, boolean useDefaultSound, long soundId, boolean useDefaultShowPreview, boolean showPreview, boolean useDefaultDisablePinnedMessageNotifications, boolean disablePinnedMessageNotifications, boolean useDefaultDisableMentionNotifications, boolean disableMentionNotifications) Contains information about notification settings for a chat or a forum topic.Contains information about notification settings for a chat or a forum topic. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
useDefaultMuteFor
public boolean useDefaultMuteForIf true, muteFor is ignored and the value for the relevant type of chat or the forum chat is used instead. -
muteFor
public int muteForTime left before notifications will be unmuted, in seconds. -
useDefaultSound
public boolean useDefaultSoundIf true, the value for the relevant type of chat or the forum chat is used instead of soundId. -
soundId
public long soundIdIdentifier of the notification sound to be played; 0 if sound is disabled. -
useDefaultShowPreview
public boolean useDefaultShowPreviewIf true, showPreview is ignored and the value for the relevant type of chat or the forum chat is used instead. -
showPreview
public boolean showPreviewTrue, if message content must be displayed in notifications. -
useDefaultDisablePinnedMessageNotifications
public boolean useDefaultDisablePinnedMessageNotificationsIf true, disablePinnedMessageNotifications is ignored and the value for the relevant type of chat or the forum chat is used instead. -
disablePinnedMessageNotifications
public boolean disablePinnedMessageNotificationsIf true, notifications for incoming pinned messages will be created as for an ordinary unread message. -
useDefaultDisableMentionNotifications
public boolean useDefaultDisableMentionNotificationsIf true, disableMentionNotifications is ignored and the value for the relevant type of chat or the forum chat is used instead. -
disableMentionNotifications
public boolean disableMentionNotificationsIf true, notifications for messages with mentions will be created as for an ordinary unread message. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ChatNotificationSettings
public ChatNotificationSettings()Contains information about notification settings for a chat or a forum topic. -
ChatNotificationSettings
public ChatNotificationSettings(boolean useDefaultMuteFor, int muteFor, boolean useDefaultSound, long soundId, boolean useDefaultShowPreview, boolean showPreview, boolean useDefaultDisablePinnedMessageNotifications, boolean disablePinnedMessageNotifications, boolean useDefaultDisableMentionNotifications, boolean disableMentionNotifications) Contains information about notification settings for a chat or a forum topic.- Parameters:
useDefaultMuteFor
- boolean If true, muteFor is ignored and the value for the relevant type of chat or the forum chat is used instead.muteFor
- int Time left before notifications will be unmuted, in seconds.useDefaultSound
- boolean If true, the value for the relevant type of chat or the forum chat is used instead of soundId.soundId
- long Identifier of the notification sound to be played; 0 if sound is disabled.useDefaultShowPreview
- boolean If true, showPreview is ignored and the value for the relevant type of chat or the forum chat is used instead.showPreview
- boolean True, if message content must be displayed in notifications.useDefaultDisablePinnedMessageNotifications
- boolean If true, disablePinnedMessageNotifications is ignored and the value for the relevant type of chat or the forum chat is used instead.disablePinnedMessageNotifications
- boolean If true, notifications for incoming pinned messages will be created as for an ordinary unread message.useDefaultDisableMentionNotifications
- boolean If true, disableMentionNotifications is ignored and the value for the relevant type of chat or the forum chat is used instead.disableMentionNotifications
- boolean If true, notifications for messages with mentions will be created as for an ordinary unread message.
-
ChatNotificationSettings
Contains information about notification settings for a chat or a forum topic.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-