java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ScopeNotificationSettings
- Enclosing class:
- TdApi
Contains information about notification settings for several chats.
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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 message content must be displayed in notifications.long
Identifier of the notification sound to be played; 0 if sound is disabled. -
Constructor Summary
ConstructorDescriptionContains information about notification settings for several chats.ScopeNotificationSettings
(int muteFor, long soundId, boolean showPreview, boolean disablePinnedMessageNotifications, boolean disableMentionNotifications) Contains information about notification settings for several chats.Contains information about notification settings for several chats. -
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
-
muteFor
public int muteForTime left before notifications will be unmuted, in seconds. -
soundId
public long soundIdIdentifier of the notification sound to be played; 0 if sound is disabled. -
showPreview
public boolean showPreviewTrue, if message content must be displayed in notifications. -
disablePinnedMessageNotifications
public boolean disablePinnedMessageNotificationsTrue, if notifications for incoming pinned messages will be created as for an ordinary unread message. -
disableMentionNotifications
public boolean disableMentionNotificationsTrue, if 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
-
ScopeNotificationSettings
public ScopeNotificationSettings()Contains information about notification settings for several chats. -
ScopeNotificationSettings
public ScopeNotificationSettings(int muteFor, long soundId, boolean showPreview, 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.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
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 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()
-