public static class TdApi.ChatNotificationSettings extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
disableMentionNotifications
If true, notifications for messages with mentions will be created as for an ordinary unread message.
|
boolean |
disablePinnedMessageNotifications
If true, notifications for incoming pinned messages will be created as for an ordinary unread message.
|
int |
muteFor
Time left before notifications will be unmuted, in seconds.
|
boolean |
showPreview
True, if message content must be displayed in notifications.
|
java.lang.String |
sound
The name of an audio file to be used for notification sounds; only applies to iOS applications.
|
boolean |
useDefaultDisableMentionNotifications
If true, disableMentionNotifications is ignored and the value for the relevant type of chat is used instead.
|
boolean |
useDefaultDisablePinnedMessageNotifications
If true, disablePinnedMessageNotifications is ignored and the value for the relevant type of chat is used instead.
|
boolean |
useDefaultMuteFor
If true, muteFor is ignored and the value for the relevant type of chat is used instead.
|
boolean |
useDefaultShowPreview
If true, showPreview is ignored and the value for the relevant type of chat is used instead.
|
boolean |
useDefaultSound
If true, sound is ignored and the value for the relevant type of chat is used instead.
|
Constructor and Description |
---|
ChatNotificationSettings()
Contains information about notification settings for a chat.
|
ChatNotificationSettings(boolean useDefaultMuteFor,
int muteFor,
boolean useDefaultSound,
java.lang.String sound,
boolean useDefaultShowPreview,
boolean showPreview,
boolean useDefaultDisablePinnedMessageNotifications,
boolean disablePinnedMessageNotifications,
boolean useDefaultDisableMentionNotifications,
boolean disableMentionNotifications)
Contains information about notification settings for a chat.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public boolean useDefaultMuteFor
public int muteFor
public boolean useDefaultSound
public java.lang.String sound
public boolean useDefaultShowPreview
public boolean showPreview
public boolean useDefaultDisablePinnedMessageNotifications
public boolean disablePinnedMessageNotifications
public boolean useDefaultDisableMentionNotifications
public boolean disableMentionNotifications
public static final int CONSTRUCTOR
public ChatNotificationSettings()
public ChatNotificationSettings(boolean useDefaultMuteFor, int muteFor, boolean useDefaultSound, java.lang.String sound, boolean useDefaultShowPreview, boolean showPreview, boolean useDefaultDisablePinnedMessageNotifications, boolean disablePinnedMessageNotifications, boolean useDefaultDisableMentionNotifications, boolean disableMentionNotifications)
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.public int getConstructor()
getConstructor
in class TdApi.Object