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
Identifier uniquely determining type of the object.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 story notifications are disabled for the chat.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 for messages; 0 if sound is disabled.long
Identifier of the notification sound to be played for stories; 0 if sound is disabled.boolean
If true, the value for the relevant type of chat or the forum chat is used instead of disableMentionNotifications.boolean
If true, the value for the relevant type of chat or the forum chat is used instead of disablePinnedMessageNotifications.boolean
If true, the value for the relevant type of chat or the forum chat is used instead of muteFor.boolean
If true, the value for the relevant type of chat is used instead of muteStories.boolean
If true, the value for the relevant type of chat or the forum chat is used instead of showPreview.boolean
If true, the value for the relevant type of chat is used instead of showStorySender.boolean
If true, the value for the relevant type of chat or the forum chat is used instead of soundId.boolean
If true, the value for the relevant type of chat is used instead of storySoundId. -
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 useDefaultMuteStories, boolean muteStories, boolean useDefaultStorySound, long storySoundId, boolean useDefaultShowStorySender, boolean showStorySender, 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
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
useDefaultMuteFor
public boolean useDefaultMuteForIf true, the value for the relevant type of chat or the forum chat is used instead of muteFor. -
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 for messages; 0 if sound is disabled. -
useDefaultShowPreview
public boolean useDefaultShowPreviewIf true, the value for the relevant type of chat or the forum chat is used instead of showPreview. -
showPreview
public boolean showPreviewTrue, if message content must be displayed in notifications. -
useDefaultMuteStories
public boolean useDefaultMuteStoriesIf true, the value for the relevant type of chat is used instead of muteStories. -
muteStories
public boolean muteStoriesTrue, if story notifications are disabled for the chat. -
useDefaultStorySound
public boolean useDefaultStorySoundIf true, the value for the relevant type of chat is used instead of storySoundId. -
storySoundId
public long storySoundIdIdentifier of the notification sound to be played for stories; 0 if sound is disabled. -
useDefaultShowStorySender
public boolean useDefaultShowStorySenderIf true, the value for the relevant type of chat is used instead of showStorySender. -
showStorySender
public boolean showStorySenderTrue, if the sender of stories must be displayed in notifications. -
useDefaultDisablePinnedMessageNotifications
public boolean useDefaultDisablePinnedMessageNotificationsIf true, the value for the relevant type of chat or the forum chat is used instead of disablePinnedMessageNotifications. -
disablePinnedMessageNotifications
public boolean disablePinnedMessageNotificationsIf true, notifications for incoming pinned messages will be created as for an ordinary unread message. -
useDefaultDisableMentionNotifications
public boolean useDefaultDisableMentionNotificationsIf true, the value for the relevant type of chat or the forum chat is used instead of disableMentionNotifications. -
disableMentionNotifications
public boolean disableMentionNotificationsIf true, notifications for messages with mentions will be created as for an ordinary unread message. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- 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 useDefaultMuteStories, boolean muteStories, boolean useDefaultStorySound, long storySoundId, boolean useDefaultShowStorySender, boolean showStorySender, boolean useDefaultDisablePinnedMessageNotifications, boolean disablePinnedMessageNotifications, boolean useDefaultDisableMentionNotifications, boolean disableMentionNotifications) Contains information about notification settings for a chat or a forum topic.- Parameters:
useDefaultMuteFor
- If true, the value for the relevant type of chat or the forum chat is used instead of muteFor.muteFor
- Time left before notifications will be unmuted, in seconds.useDefaultSound
- If true, the value for the relevant type of chat or the forum chat is used instead of soundId.soundId
- Identifier of the notification sound to be played for messages; 0 if sound is disabled.useDefaultShowPreview
- If true, the value for the relevant type of chat or the forum chat is used instead of showPreview.showPreview
- True, if message content must be displayed in notifications.useDefaultMuteStories
- If true, the value for the relevant type of chat is used instead of muteStories.muteStories
- True, if story notifications are disabled for the chat.useDefaultStorySound
- If true, the value for the relevant type of chat is used instead of storySoundId.storySoundId
- Identifier of the notification sound to be played for stories; 0 if sound is disabled.useDefaultShowStorySender
- If true, the value for the relevant type of chat is used instead of showStorySender.showStorySender
- True, if the sender of stories must be displayed in notifications.useDefaultDisablePinnedMessageNotifications
- If true, the value for the relevant type of chat or the forum chat is used instead of disablePinnedMessageNotifications.disablePinnedMessageNotifications
- If true, notifications for incoming pinned messages will be created as for an ordinary unread message.useDefaultDisableMentionNotifications
- If true, the value for the relevant type of chat or the forum chat is used instead of disableMentionNotifications.disableMentionNotifications
- 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.- 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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-