public static class TdApi.NotificationTypeNewPushMessage extends TdApi.NotificationType
TdApi.NotificationType.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.PushMessageContent |
content
Push message content.
|
boolean |
isOutgoing
True, if the message is outgoing.
|
long |
messageId
The message identifier.
|
TdApi.MessageSender |
senderId
Identifier of the sender of the message.
|
java.lang.String |
senderName
Name of the sender.
|
Constructor and Description |
---|
NotificationTypeNewPushMessage()
New message was received through a push notification.
|
NotificationTypeNewPushMessage(long messageId,
TdApi.MessageSender senderId,
java.lang.String senderName,
boolean isOutgoing,
TdApi.PushMessageContent content)
New message was received through a push notification.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long messageId
public TdApi.MessageSender senderId
public java.lang.String senderName
public boolean isOutgoing
public TdApi.PushMessageContent content
public static final int CONSTRUCTOR
public NotificationTypeNewPushMessage()
public NotificationTypeNewPushMessage(long messageId, TdApi.MessageSender senderId, java.lang.String senderName, boolean isOutgoing, TdApi.PushMessageContent content)
messageId
- The message identifier. The message will not be available in the chat history, but the ID can be used in viewMessages, or as replyToMessageId.senderId
- Identifier of the sender of the message. Corresponding user or chat may be inaccessible.senderName
- Name of the sender.isOutgoing
- True, if the message is outgoing.content
- Push message content.public int getConstructor()
getConstructor
in class TdApi.NotificationType