NotificationTypeNewPushMessage class final
New message was received through a push notification
- Inheritance
-
- Object
- TdObject
- NotificationType
- NotificationTypeNewPushMessage
Constructors
- NotificationTypeNewPushMessage({required int messageId, required MessageSender senderId, required String senderName, required bool isOutgoing, required PushMessageContent content})
-
New message was received through a push notification
const
-
NotificationTypeNewPushMessage.fromJson(Map<
String, dynamic> json) -
Parses a NotificationTypeNewPushMessage from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- content → PushMessageContent
-
Push message content
final
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOutgoing → bool
-
True, if the message is outgoing
final
- messageId → int
-
The message identifier. The message will not be available in the chat history, but the identifier can be used in viewMessages, or as a message to reply
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- senderId → MessageSender
-
Identifier of the sender of the message. Corresponding user or chat may be inaccessible
final
- senderName → String
-
Name of the sender
final
Methods
-
copyWith(
{int? messageId, MessageSender? senderId, String? senderName, bool? isOutgoing, PushMessageContent? content}) → NotificationTypeNewPushMessage -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it.override -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.