Interface Message

All Superinterfaces:
it.auties.protobuf.model.ProtobufMessage, it.auties.protobuf.model.ProtobufObject
All Known Subinterfaces:
ButtonMessage, ButtonReplyMessage<T>, ContextualMessage<T>, MediaMessage<T>, PaymentMessage, ServerMessage
All Known Implementing Classes:
AudioMessage, ButtonsMessage, ButtonsResponseMessage, CallMessage, CancelPaymentRequestMessage, ContactMessage, ContactsMessage, DeclinePaymentRequestMessage, DeviceSentMessage, DeviceSyncMessage, DocumentMessage, EmptyMessage, EncryptedReactionMessage, it.auties.whatsapp.model.message.model.reserved.ExtendedMediaMessage, GroupInviteMessage, HighlyStructuredMessage, ImageMessage, InteractiveMessage, InteractiveResponseMessage, KeepInChatMessage, ListMessage, ListResponseMessage, LiveLocationMessage, LocationMessage, NativeFlowResponseMessage, PaymentInviteMessage, PaymentInvoiceMessage, PaymentOrderMessage, PollCreationMessage, PollUpdateMessage, ProductMessage, ProtocolMessage, ReactionMessage, RequestPaymentMessage, RequestPhoneNumberMessage, SenderKeyDistributionMessage, SendPaymentMessage, StickerMessage, StickerSyncRMRMessage, TemplateMessage, TemplateReplyMessage, TextMessage, VideoOrGifMessage

public sealed interface Message extends it.auties.protobuf.model.ProtobufMessage permits ButtonMessage, ContextualMessage<T>, PaymentMessage, ServerMessage, CallMessage, EmptyMessage, KeepInChatMessage, PollUpdateMessage, ReactionMessage
A model interface that represents a message sent by a contact or by Whatsapp.
  • Method Details

    • type

      MessageType type()
      Return message type
      Returns:
      a non-null message type
    • category

      MessageCategory category()
      Return message category
      Returns:
      a non-null message category