Module tdlight.api

Class TdApi.NotificationTypeNewPushMessage

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.NotificationType
it.tdlight.jni.TdApi.NotificationTypeNewPushMessage
Enclosing class:
TdApi

public static final class TdApi.NotificationTypeNewPushMessage extends TdApi.NotificationType
New message was received through a push notification.
  • Field Details

    • messageId

      public long messageId
      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.
    • senderId

      public TdApi.MessageSender senderId
      Identifier of the sender of the message. Corresponding user or chat may be inaccessible.
    • senderName

      public String senderName
      Name of the sender.
    • isOutgoing

      public boolean isOutgoing
      True, if the message is outgoing.
    • content

      public TdApi.PushMessageContent content
      Push message content.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • NotificationTypeNewPushMessage

      public NotificationTypeNewPushMessage()
      New message was received through a push notification.
    • NotificationTypeNewPushMessage

      public NotificationTypeNewPushMessage(long messageId, TdApi.MessageSender senderId, String senderName, boolean isOutgoing, TdApi.PushMessageContent content)
      New message was received through a push notification.
      Parameters:
      messageId - 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.
      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.
    • NotificationTypeNewPushMessage

      public NotificationTypeNewPushMessage(DataInput input) throws IOException
      New message was received through a push notification.
      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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object