Package org.drinkless.tdlib
Class TdApi.ChatNotificationSettings
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.ChatNotificationSettings
-
- Enclosing class:
- TdApi
public static class TdApi.ChatNotificationSettings extends TdApi.Object
Contains information about notification settings for a chat.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.booleandisableMentionNotificationsIf true, notifications for messages with mentions will be created as for an ordinary unread message.booleandisablePinnedMessageNotificationsIf true, notifications for incoming pinned messages will be created as for an ordinary unread message.intmuteForTime left before notifications will be unmuted, in seconds.booleanshowPreviewTrue, if message content must be displayed in notifications.StringsoundThe name of an audio file to be used for notification sounds; only applies to iOS applications.booleanuseDefaultDisableMentionNotificationsIf true, disableMentionNotifications is ignored and the value for the relevant type of chat is used instead.booleanuseDefaultDisablePinnedMessageNotificationsIf true, disablePinnedMessageNotifications is ignored and the value for the relevant type of chat is used instead.booleanuseDefaultMuteForIf true, muteFor is ignored and the value for the relevant type of chat is used instead.booleanuseDefaultShowPreviewIf true, showPreview is ignored and the value for the relevant type of chat is used instead.booleanuseDefaultSoundIf true, sound is ignored and the value for the relevant type of chat is used instead.
-
Constructor Summary
Constructors Constructor Description ChatNotificationSettings()Contains information about notification settings for a chat.ChatNotificationSettings(boolean useDefaultMuteFor, int muteFor, boolean useDefaultSound, String sound, boolean useDefaultShowPreview, boolean showPreview, boolean useDefaultDisablePinnedMessageNotifications, boolean disablePinnedMessageNotifications, boolean useDefaultDisableMentionNotifications, boolean disableMentionNotifications)Contains information about notification settings for a chat.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
useDefaultMuteFor
public boolean useDefaultMuteFor
If true, muteFor is ignored and the value for the relevant type of chat is used instead.
-
muteFor
public int muteFor
Time left before notifications will be unmuted, in seconds.
-
useDefaultSound
public boolean useDefaultSound
If true, sound is ignored and the value for the relevant type of chat is used instead.
-
sound
public String sound
The name of an audio file to be used for notification sounds; only applies to iOS applications.
-
useDefaultShowPreview
public boolean useDefaultShowPreview
If true, showPreview is ignored and the value for the relevant type of chat is used instead.
-
showPreview
public boolean showPreview
True, if message content must be displayed in notifications.
-
useDefaultDisablePinnedMessageNotifications
public boolean useDefaultDisablePinnedMessageNotifications
If true, disablePinnedMessageNotifications is ignored and the value for the relevant type of chat is used instead.
-
disablePinnedMessageNotifications
public boolean disablePinnedMessageNotifications
If true, notifications for incoming pinned messages will be created as for an ordinary unread message.
-
useDefaultDisableMentionNotifications
public boolean useDefaultDisableMentionNotifications
If true, disableMentionNotifications is ignored and the value for the relevant type of chat is used instead.
-
disableMentionNotifications
public boolean disableMentionNotifications
If true, 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:
- Constant Field Values
-
-
Constructor Detail
-
ChatNotificationSettings
public ChatNotificationSettings()
Contains information about notification settings for a chat.
-
ChatNotificationSettings
public ChatNotificationSettings(boolean useDefaultMuteFor, int muteFor, boolean useDefaultSound, String sound, boolean useDefaultShowPreview, boolean showPreview, boolean useDefaultDisablePinnedMessageNotifications, boolean disablePinnedMessageNotifications, boolean useDefaultDisableMentionNotifications, boolean disableMentionNotifications)Contains information about notification settings for a chat.- Parameters:
useDefaultMuteFor- If true, muteFor is ignored and the value for the relevant type of chat is used instead.muteFor- Time left before notifications will be unmuted, in seconds.useDefaultSound- If true, sound is ignored and the value for the relevant type of chat is used instead.sound- The name of an audio file to be used for notification sounds; only applies to iOS applications.useDefaultShowPreview- If true, showPreview is ignored and the value for the relevant type of chat is used instead.showPreview- True, if message content must be displayed in notifications.useDefaultDisablePinnedMessageNotifications- If true, disablePinnedMessageNotifications is ignored and the value for the relevant type of chat is used instead.disablePinnedMessageNotifications- If true, notifications for incoming pinned messages will be created as for an ordinary unread message.useDefaultDisableMentionNotifications- If true, disableMentionNotifications is ignored and the value for the relevant type of chat is used instead.disableMentionNotifications- If true, notifications for messages with mentions will be created as for an ordinary unread message.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-